Adds sponsor model

This commit is contained in:
Gopesh Tulsyan 2014-06-05 17:51:22 +05:30
parent 411deb4c65
commit e38a654af1
6 changed files with 58 additions and 0 deletions

View 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