Adds lodging description to conference

This commit is contained in:
Gopesh Tulsyan 2014-06-14 22:53:20 +05:30
parent 2a742e6d0a
commit feabc3b954
4 changed files with 10 additions and 2 deletions

View file

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

View file

@ -18,6 +18,7 @@
= 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.input :lodging_description, hint: 'This will appear in the lodging segement of the splash'
= f.inputs :name => "Media" do
- if !@conference.logo.blank?

View file

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

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140613083115) do
ActiveRecord::Schema.define(version: 20140614171853) do
create_table "answers", force: true do |t|
t.string "title"
@ -86,6 +86,7 @@ ActiveRecord::Schema.define(version: 20140613083115) do
t.string "google_url"
t.text "sponsor_description"
t.string "sponsor_email"
t.text "lodging_description"
end
create_table "conferences_questions", id: false, force: true do |t|