Adds sponsor model
This commit is contained in:
parent
411deb4c65
commit
e38a654af1
6 changed files with 58 additions and 0 deletions
16
db/migrate/20140605115251_create_sponsors.rb
Normal file
16
db/migrate/20140605115251_create_sponsors.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class CreateSponsors < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :sponsors do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.string :website_url
|
||||
t.string :logo_file_name
|
||||
t.string :logo_content_type
|
||||
t.integer :logo_file_size
|
||||
t.datetime :logo_updated_at
|
||||
t.belongs_to :sponsorship_level
|
||||
t.belongs_to :conference
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue