Adds instagram url to conference

This commit is contained in:
Gopesh Tulsyan 2014-06-27 22:45:12 +05:30
parent e576db90d7
commit 6ae845143e
4 changed files with 8 additions and 1 deletions

View file

@ -20,7 +20,7 @@ class Conference < ActiveRecord::Base
:include_social_media_in_splash, :include_program_in_splash,
:make_conference_public, :photos_attributes, :banner_photo,
:include_banner_in_splash, :targets, :targets_attributes, :campaigns,
:campaigns_attributes
:campaigns_attributes, :instagram_url
has_paper_trail

View file

@ -46,4 +46,5 @@
= f.input :facebook_url, hint: 'This will appear in the social media section as link to the Facebook page of your Conference'
= f.input :google_url, label: 'Google+ Url', hint: 'This will appear in the social media section as the link to the Google+ Page of your Conference'
= f.input :twitter_url, hint: 'This will appear in the social media section as the link to the Twitter Page of your Conference'
= f.input :instagram_url, hint: 'This will appear in the social media section as the link to the Instagram Page of your Conference'
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}

View file

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

View file

@ -125,6 +125,7 @@ ActiveRecord::Schema.define(version: 20140626123837) do
t.integer "banner_photo_file_size"
t.datetime "banner_photo_updated_at"
t.boolean "include_banner_in_splash", default: false
t.string "instagram_url"
end
create_table "conferences_questions", id: false, force: true do |t|