Dont need an index for a single record
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RemoveAccountsJoinCodeIndex < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
remove_index :accounts, :join_code
|
||||
end
|
||||
end
|
||||
Generated
+1
-2
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_04_15_131630) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_04_15_131804) do
|
||||
create_table "accesses", force: :cascade do |t|
|
||||
t.integer "collection_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
@@ -27,7 +27,6 @@ ActiveRecord::Schema[8.1].define(version: 2025_04_15_131630) do
|
||||
t.string "join_code"
|
||||
t.string "name", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["join_code"], name: "index_accounts_on_join_code", unique: true
|
||||
end
|
||||
|
||||
create_table "action_text_markdowns", force: :cascade do |t|
|
||||
|
||||
+2
-18
@@ -1059,23 +1059,7 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
accounts:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: accounts
|
||||
name: index_accounts_on_join_code
|
||||
unique: true
|
||||
columns:
|
||||
- join_code
|
||||
lengths: {}
|
||||
orders: {}
|
||||
opclasses: {}
|
||||
where:
|
||||
type:
|
||||
using:
|
||||
include:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
accounts: []
|
||||
action_text_markdowns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: action_text_markdowns
|
||||
@@ -2008,4 +1992,4 @@ indexes:
|
||||
comment:
|
||||
valid: true
|
||||
workflows: []
|
||||
version: 20250415131630
|
||||
version: 20250415131804
|
||||
|
||||
Reference in New Issue
Block a user