Added sponsor description and email to conference

This commit is contained in:
Gopesh Tulsyan 2014-06-13 00:44:21 +05:30
parent f8ba5db48e
commit 2c27119e8e
5 changed files with 15 additions and 1 deletions

View file

@ -15,7 +15,7 @@ class Conference < ActiveRecord::Base
:registration_description, :ticket_description,
:sponsorship_levels_attributes,
:sponsors_attributes, :facebook_url,
:google_url, :twitter_url
:google_url, :twitter_url, :sponsor_description, :sponsor_email
has_paper_trail

View file

@ -16,6 +16,8 @@
= f.input :registration_end_date, :as => :string, :input_html => { :id => "conference-reg-end-datepicker", :readonly => "readonly" }
= f.input :registration_description, hint: 'This description will appear in registration segment of the splash'
= f.input :ticket_description, hint: 'This will appear in the Tickets segment of the splash'
= f.input :sponsor_description, hint: 'This will appear in the sponsor segment of the splash'
= f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers'
= f.inputs :name => "Media" do
- if !@conference.logo.blank?

View file

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

View file

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

View file

@ -84,6 +84,8 @@ ActiveRecord::Schema.define(version: 20140612181230) do
t.string "twitter_url"
t.string "facebook_url"
t.string "google_url"
t.text "sponsor_description"
t.string "sponsor_email"
end
create_table "conferences_questions", id: false, force: true do |t|