Remove wrong migration

This commit is contained in:
Jorge Manrubia
2025-10-15 14:31:02 +02:00
parent bd178fef3c
commit b2b05e1da8
4 changed files with 7 additions and 3 deletions
@@ -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
@@ -0,0 +1,4 @@
class RemoveCreatorFromCardNotNows < ActiveRecord::Migration[8.1]
def change
end
end
Generated
+1 -1
View File
@@ -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
+1 -1
View File
@@ -3197,4 +3197,4 @@ indexes:
nulls_not_distinct:
comment:
valid: true
version: 20251015122204
version: 20251015123003