Merge pull request #3485 from hennevogel/bugfix/drop-org-migration

First remove reference, then drop table...
This commit is contained in:
Henne Vogelsang 2024-11-22 14:22:05 +01:00 committed by GitHub
commit 299250a574
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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