introduce organizations
This commit is contained in:
parent
bf54487a19
commit
8edf896d86
21 changed files with 345 additions and 4 deletions
9
db/migrate/20170529215453_create_organizations.rb
Normal file
9
db/migrate/20170529215453_create_organizations.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class CreateOrganizations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.string :picture
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddOrganizatonIdToConference < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :organization_id, :integer
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue