Introduce strong parameters
This commit is contained in:
parent
38bc2e3c3a
commit
355ecc0ac6
93 changed files with 172 additions and 241 deletions
|
|
@ -5,7 +5,6 @@ class MoveConferenceContactDetailsToContact < ActiveRecord::Migration
|
|||
|
||||
class TempContact < ActiveRecord::Base
|
||||
self.table_name = 'contacts'
|
||||
attr_accessible :conference_id, :social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ class MoveConferenceMediaToCommercial < ActiveRecord::Migration
|
|||
|
||||
class TempCommercial < ActiveRecord::Base
|
||||
self.table_name = 'commercials'
|
||||
attr_accessible :commercial_id, :commercial_type, :commercialable_id, :commercialable_type
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ class MoveEventMediaToCommercial < ActiveRecord::Migration
|
|||
|
||||
class TempCommercial < ActiveRecord::Base
|
||||
self.table_name = 'commercials'
|
||||
attr_accessible :commercial_id, :commercial_type, :commercialable_id, :commercialable_type
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ class MoveConferenceRegistrationDataToRegistrationPeriods < ActiveRecord::Migrat
|
|||
|
||||
class TempRegistrationPeriod < ActiveRecord::Base
|
||||
self.table_name = 'registration_periods'
|
||||
attr_accessible :conference_id, :start_date, :end_date, :description
|
||||
end
|
||||
|
||||
def up
|
||||
|
|
|
|||
|
|
@ -1,17 +1,14 @@
|
|||
class MigratingSupporterRegistrationsToTicketUsers < ActiveRecord::Migration
|
||||
class TempSupporterRegistrations < ActiveRecord::Base
|
||||
self.table_name = 'supporter_registrations'
|
||||
attr_accessible :conference_id, :supporter_level_id, :registration_id, :user_id
|
||||
end
|
||||
|
||||
class TempUser < ActiveRecord::Base
|
||||
self.table_name = 'users'
|
||||
attr_accessible :user_id
|
||||
end
|
||||
|
||||
class TempRegistration < ActiveRecord::Base
|
||||
self.table_name = 'registrations'
|
||||
attr_accessible :user_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -5,14 +5,12 @@ class AssignUsersToEvents < ActiveRecord::Migration
|
|||
|
||||
class TempUser < ActiveRecord::Base
|
||||
self.table_name = 'users'
|
||||
attr_accessible :email, :name, :biography, :password
|
||||
end
|
||||
|
||||
class TempEventUser < ActiveRecord::Base
|
||||
self.table_name = 'event_users'
|
||||
belongs_to :temp_event
|
||||
belongs_to :temp_user
|
||||
attr_accessible :event_id, :user_id, :event_role
|
||||
end
|
||||
|
||||
def up
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ class UndoWrongMigration20140801080705AddUsersToEvents < ActiveRecord::Migration
|
|||
self.table_name = 'event_users'
|
||||
belongs_to :temp_event
|
||||
belongs_to :temp_user
|
||||
attr_accessible :event_id, :user_id, :event_role
|
||||
end
|
||||
|
||||
class Version < ActiveRecord::Base
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
class SplitTicketPriceInPriceAndCurrency < ActiveRecord::Migration
|
||||
class TempTicket < ActiveRecord::Base
|
||||
self.table_name = 'tickets'
|
||||
attr_accessible :ticket_price, :price_cents, :price_currency
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -17,10 +17,6 @@ class MoveSplashpageAttributesFromConferenceToSplashpage < ActiveRecord::Migrati
|
|||
|
||||
class TempSplashpage < ActiveRecord::Base
|
||||
self.table_name = 'splashpages'
|
||||
attr_accessible :conference_id, :public, :include_registrations, :include_tracks, :include_program,
|
||||
:include_social_media, :include_banner, :include_tickets, :ticket_description, :include_sponsors,
|
||||
:sponsor_description, :lodging_description, :banner_photo_file_name, :banner_photo_content_type,
|
||||
:banner_photo_file_size, :banner_photo_updated_at, :banner_description
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
|
|||
self.table_name = 'registrations'
|
||||
|
||||
belongs_to :temp_conference
|
||||
attr_accessible :handicapped_access_required
|
||||
end
|
||||
|
||||
class TempConference < ActiveRecord::Base
|
||||
|
|
@ -16,14 +15,12 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
|
|||
class TempQuestionType < ActiveRecord::Base
|
||||
self.table_name = 'question_types'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_questions
|
||||
end
|
||||
|
||||
class TempQuestion < ActiveRecord::Base
|
||||
self.table_name = 'questions'
|
||||
|
||||
attr_accessible :title, :global, :question_type_id
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_answers, through: :temp_qanswers
|
||||
belongs_to :temp_question_type
|
||||
|
|
@ -33,7 +30,6 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
|
|||
class TempAnswer < ActiveRecord::Base
|
||||
self.table_name = 'answers'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_questions, through: :temp_qanswers
|
||||
end
|
||||
|
|
@ -41,21 +37,16 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
|
|||
class TempQanswer < ActiveRecord::Base
|
||||
self.table_name = 'qanswers'
|
||||
|
||||
attr_accessible :question_id, :answer_id
|
||||
belongs_to :temp_question
|
||||
belongs_to :temp_answer
|
||||
end
|
||||
|
||||
class TempConferencesQuestions < ActiveRecord::Base
|
||||
self.table_name = 'conferences_questions'
|
||||
|
||||
attr_accessible :question_id, :conference_id
|
||||
end
|
||||
|
||||
class TempQanswerRegistration < ActiveRecord::Base
|
||||
self.table_name = 'qanswers_registrations'
|
||||
|
||||
attr_accessible :registration_id, :qanswer_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ class AddAttendingWithPartnerToQuestions < ActiveRecord::Migration
|
|||
self.table_name = 'registrations'
|
||||
|
||||
belongs_to :temp_conference
|
||||
attr_accessible :attending_with_partner
|
||||
end
|
||||
|
||||
class TempConference < ActiveRecord::Base
|
||||
|
|
@ -16,14 +15,12 @@ class AddAttendingWithPartnerToQuestions < ActiveRecord::Migration
|
|||
class TempQuestionType < ActiveRecord::Base
|
||||
self.table_name = 'question_types'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_questions
|
||||
end
|
||||
|
||||
class TempQuestion < ActiveRecord::Base
|
||||
self.table_name = 'questions'
|
||||
|
||||
attr_accessible :title, :global, :question_type_id
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_answers, through: :temp_qanswers
|
||||
belongs_to :temp_question_type
|
||||
|
|
@ -33,7 +30,6 @@ class AddAttendingWithPartnerToQuestions < ActiveRecord::Migration
|
|||
class TempAnswer < ActiveRecord::Base
|
||||
self.table_name = 'answers'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_questions, through: :temp_qanswers
|
||||
end
|
||||
|
|
@ -41,21 +37,16 @@ class AddAttendingWithPartnerToQuestions < ActiveRecord::Migration
|
|||
class TempQanswer < ActiveRecord::Base
|
||||
self.table_name = 'qanswers'
|
||||
|
||||
attr_accessible :question_id, :answer_id
|
||||
belongs_to :temp_question
|
||||
belongs_to :temp_answer
|
||||
end
|
||||
|
||||
class TempConferencesQuestions < ActiveRecord::Base
|
||||
self.table_name = 'conferences_questions'
|
||||
|
||||
attr_accessible :question_id, :conference_id
|
||||
end
|
||||
|
||||
class TempQanswerRegistration < ActiveRecord::Base
|
||||
self.table_name = 'qanswers_registrations'
|
||||
|
||||
attr_accessible :registration_id, :qanswer_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ class AddStayingAtSuggestedHotelToQuestions < ActiveRecord::Migration
|
|||
self.table_name = 'registrations'
|
||||
|
||||
belongs_to :temp_conference
|
||||
attr_accessible :using_affiliated_lodging
|
||||
end
|
||||
|
||||
class TempConference < ActiveRecord::Base
|
||||
|
|
@ -16,14 +15,12 @@ class AddStayingAtSuggestedHotelToQuestions < ActiveRecord::Migration
|
|||
class TempQuestionType < ActiveRecord::Base
|
||||
self.table_name = 'question_types'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_questions
|
||||
end
|
||||
|
||||
class TempQuestion < ActiveRecord::Base
|
||||
self.table_name = 'questions'
|
||||
|
||||
attr_accessible :title, :global, :question_type_id
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_answers, through: :temp_qanswers
|
||||
belongs_to :temp_question_type
|
||||
|
|
@ -33,7 +30,6 @@ class AddStayingAtSuggestedHotelToQuestions < ActiveRecord::Migration
|
|||
class TempAnswer < ActiveRecord::Base
|
||||
self.table_name = 'answers'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_questions, through: :temp_qanswers
|
||||
end
|
||||
|
|
@ -41,21 +37,16 @@ class AddStayingAtSuggestedHotelToQuestions < ActiveRecord::Migration
|
|||
class TempQanswer < ActiveRecord::Base
|
||||
self.table_name = 'qanswers'
|
||||
|
||||
attr_accessible :question_id, :answer_id
|
||||
belongs_to :temp_question
|
||||
belongs_to :temp_answer
|
||||
end
|
||||
|
||||
class TempConferencesQuestions < ActiveRecord::Base
|
||||
self.table_name = 'conferences_questions'
|
||||
|
||||
attr_accessible :question_id, :conference_id
|
||||
end
|
||||
|
||||
class TempQanswerRegistration < ActiveRecord::Base
|
||||
self.table_name = 'qanswers_registrations'
|
||||
|
||||
attr_accessible :registration_id, :qanswer_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ class AddAttendingSocialEventsToQuestions < ActiveRecord::Migration
|
|||
class TempRegistration < ActiveRecord::Base
|
||||
self.table_name = 'registrations'
|
||||
|
||||
attr_accessible :attending_social_events
|
||||
belongs_to :temp_conference
|
||||
end
|
||||
|
||||
|
|
@ -16,14 +15,12 @@ class AddAttendingSocialEventsToQuestions < ActiveRecord::Migration
|
|||
class TempQuestionType < ActiveRecord::Base
|
||||
self.table_name = 'question_types'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_questions
|
||||
end
|
||||
|
||||
class TempQuestion < ActiveRecord::Base
|
||||
self.table_name = 'questions'
|
||||
|
||||
attr_accessible :title, :global, :question_type_id
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_answers, through: :temp_qanswers
|
||||
belongs_to :temp_question_type
|
||||
|
|
@ -33,7 +30,6 @@ class AddAttendingSocialEventsToQuestions < ActiveRecord::Migration
|
|||
class TempAnswer < ActiveRecord::Base
|
||||
self.table_name = 'answers'
|
||||
|
||||
attr_accessible :title
|
||||
has_many :temp_qanswers
|
||||
has_many :temp_questions, through: :temp_qanswers
|
||||
end
|
||||
|
|
@ -41,21 +37,16 @@ class AddAttendingSocialEventsToQuestions < ActiveRecord::Migration
|
|||
class TempQanswer < ActiveRecord::Base
|
||||
self.table_name = 'qanswers'
|
||||
|
||||
attr_accessible :question_id, :answer_id
|
||||
belongs_to :temp_question
|
||||
belongs_to :temp_answer
|
||||
end
|
||||
|
||||
class TempConferencesQuestions < ActiveRecord::Base
|
||||
self.table_name = 'conferences_questions'
|
||||
|
||||
attr_accessible :question_id, :conference_id
|
||||
end
|
||||
|
||||
class TempQanswerRegistration < ActiveRecord::Base
|
||||
self.table_name = 'qanswers_registrations'
|
||||
|
||||
attr_accessible :registration_id, :qanswer_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
class GenerateUsername < ActiveRecord::Migration
|
||||
class TempUser < ActiveRecord::Base
|
||||
self.table_name = 'users'
|
||||
attr_accessible :username, :email
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
class MoveBannerDescriptionToConference < ActiveRecord::Migration
|
||||
class TempConference < ActiveRecord::Base
|
||||
self.table_name = 'conferences'
|
||||
attr_accessible :description
|
||||
end
|
||||
|
||||
class TempSplashpage < ActiveRecord::Base
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ class ChangeVenueConferenceAssociation < ActiveRecord::Migration
|
|||
|
||||
class TempVenue < ActiveRecord::Base
|
||||
self.table_name = 'venues'
|
||||
attr_accessible :conference_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ class ChangeLodgingAssociationToConference < ActiveRecord::Migration
|
|||
|
||||
class TempLodging < ActiveRecord::Base
|
||||
self.table_name = 'lodgings'
|
||||
attr_accessible :conference_id
|
||||
end
|
||||
|
||||
def change
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ class MigrateDataRemoveColumnIncludeCfpInSplashAddColumnIncludeCfp < ActiveRecor
|
|||
|
||||
class TempSplashpage < ActiveRecord::Base
|
||||
self.table_name = 'splashpages'
|
||||
attr_accessible :conference_id
|
||||
end
|
||||
|
||||
def up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue