osem-fcy/db/migrate/20181229233812_drop_organizations.rb

12 lines
270 B
Ruby
Raw Normal View History

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
end
end