mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
First remove reference, then drop table...
This commit is contained in:
parent
55943db57f
commit
81cdec6633
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue