diff --git a/db/migrate/20181229233812_drop_organizations.rb b/db/migrate/20181229233812_drop_organizations.rb index dd1be5f2..3a5d4cd5 100644 --- a/db/migrate/20181229233812_drop_organizations.rb +++ b/db/migrate/20181229233812_drop_organizations.rb @@ -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