Sponsor dashboard added, with sponsor component for splash page

This commit is contained in:
Gopesh Tulsyan 2014-05-26 13:51:03 +05:30
parent 643b8b173a
commit ea119a8158
36 changed files with 549 additions and 12 deletions

View file

@ -0,0 +1,10 @@
class CreateSponsorshipLevels < ActiveRecord::Migration
def change
create_table :sponsorship_levels do |t|
t.string :title
t.text :description
t.belongs_to :conference
t.timestamps
end
end
end

View file

@ -0,0 +1,15 @@
class CreateSponsorshipRegistrations < ActiveRecord::Migration
def change
create_table :sponsorship_registrations do |t|
t.string :name
t.string :email_id
t.string :contact_no
t.float :amount_donated
t.string :method_of_donation
t.belongs_to :organization
t.belongs_to :sponsorship_level
t.belongs_to :conference
t.timestamps
end
end
end

View file

@ -0,0 +1,14 @@
class CreateOrganizations < ActiveRecord::Migration
def change
create_table :organizations do |t|
t.string :title
t.string :email_id
t.text :description
t.string :photo_file_name
t.string :photo_content_type
t.integer :photo_file_size
t.datetime :photo_updated_at
t.timestamps
end
end
end

View file

@ -0,0 +1,5 @@
class AddSponsorEmailToConferences < ActiveRecord::Migration
def change
add_column :conferences, :sponsor_email, :string
end
end

View file

@ -0,0 +1,5 @@
class AddSponsorDescriptionToConferences < ActiveRecord::Migration
def change
add_column :conferences, :sponsor_description, :text
end
end

View file

@ -0,0 +1,5 @@
class AddWebsiteUrlToOrganization < ActiveRecord::Migration
def change
add_column :organizations, :website_url, :string
end
end