diff --git a/db/migrate/20250415131804_remove_accounts_join_code_index.rb b/db/migrate/20250415131804_remove_accounts_join_code_index.rb new file mode 100644 index 000000000..30a312211 --- /dev/null +++ b/db/migrate/20250415131804_remove_accounts_join_code_index.rb @@ -0,0 +1,5 @@ +class RemoveAccountsJoinCodeIndex < ActiveRecord::Migration[8.1] + def change + remove_index :accounts, :join_code + end +end diff --git a/db/schema.rb b/db/schema.rb index b4fada365..06a8eb245 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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| diff --git a/db/schema_cache.yml b/db/schema_cache.yml index dbe786903..f662880fe 100644 --- a/db/schema_cache.yml +++ b/db/schema_cache.yml @@ -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