diff --git a/db/migrate/20251015112653_add_creator_to_card_not_nows.rb b/db/migrate/20251015112653_add_creator_to_card_not_nows.rb index 747a347b9..af4be4080 100644 --- a/db/migrate/20251015112653_add_creator_to_card_not_nows.rb +++ b/db/migrate/20251015112653_add_creator_to_card_not_nows.rb @@ -1,5 +1,5 @@ class AddCreatorToCardNotNows < ActiveRecord::Migration[8.1] def change - add_reference :card_not_nows, :creator, null: false, foreign_key: { to_table: :users } + add_reference :card_not_nows, :creator, null: true, foreign_key: { to_table: :users } end end diff --git a/db/migrate/20251015123003_remove_creator_from_card_not_nows.rb b/db/migrate/20251015123003_remove_creator_from_card_not_nows.rb new file mode 100644 index 000000000..e656e7174 --- /dev/null +++ b/db/migrate/20251015123003_remove_creator_from_card_not_nows.rb @@ -0,0 +1,4 @@ +class RemoveCreatorFromCardNotNows < ActiveRecord::Migration[8.1] + def change + end +end diff --git a/db/schema.rb b/db/schema.rb index ba76131ce..b6d4d1ffe 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_10_15_122204) do +ActiveRecord::Schema[8.1].define(version: 2025_10_15_123003) do create_table "accesses", force: :cascade do |t| t.datetime "accessed_at" t.integer "collection_id", null: false diff --git a/db/schema_cache.yml b/db/schema_cache.yml index 45db15cef..68e51777c 100644 --- a/db/schema_cache.yml +++ b/db/schema_cache.yml @@ -3197,4 +3197,4 @@ indexes: nulls_not_distinct: comment: valid: true -version: 20251015122204 +version: 20251015123003