First remove reference, then drop table...

This commit is contained in:
Henne Vogelsang 2024-11-22 14:15:05 +01:00
parent 55943db57f
commit 81cdec6633
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -1,11 +1,11 @@
class DropOrganizations < ActiveRecord::Migration[7.0] class DropOrganizations < ActiveRecord::Migration[7.0]
def change def change
remove_reference :conferences, :organization, index: true
drop_table :organizations do |t| drop_table :organizations do |t|
t.string :name, null: false t.string :name, null: false
t.text :description t.text :description
t.string :picture t.string :picture
end end
remove_reference :conferences, :organization, index: true
end end
end end