Sponsor dashboard added, with sponsor component for splash page
This commit is contained in:
parent
643b8b173a
commit
ea119a8158
36 changed files with 549 additions and 12 deletions
10
db/migrate/20140524121219_create_sponsorship_levels.rb
Normal file
10
db/migrate/20140524121219_create_sponsorship_levels.rb
Normal 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
|
||||
|
|
@ -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
|
||||
14
db/migrate/20140524122046_create_organizations.rb
Normal file
14
db/migrate/20140524122046_create_organizations.rb
Normal 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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddSponsorEmailToConferences < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :sponsor_email, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddSponsorDescriptionToConferences < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :sponsor_description, :text
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddWebsiteUrlToOrganization < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :organizations, :website_url, :string
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue