Drop Organization from database
Rolling back this feature. It was a nice attempt but no one ever followed up and made this something else than a code of conduct holder...
This commit is contained in:
parent
f7998b8f58
commit
b9a50ef20d
3 changed files with 25 additions and 15 deletions
11
db/migrate/20181229233812_drop_organizations.rb
Normal file
11
db/migrate/20181229233812_drop_organizations.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class DropOrganizations < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddCodeOfConductToConference < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :conferences, :code_of_conduct, :text
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue