Fix basic style issues with rubocop
This commit is contained in:
parent
f4a22851a1
commit
763f864dc9
36 changed files with 108 additions and 143 deletions
|
|
@ -15,5 +15,4 @@ class CreateVenueTable < ActiveRecord::Migration
|
|||
def down
|
||||
drop_table :venues
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ class CreateEmailTable < ActiveRecord::Migration
|
|||
t.text :confirmed_email_template
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def down
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ class ChangeAttachmentDefault < ActiveRecord::Migration
|
|||
def up
|
||||
change_column_default(:event_attachments, :public, true)
|
||||
end
|
||||
|
||||
def down
|
||||
change_column_default(:event_attachments, :public, nil)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
class RegistrationsVchoices < ActiveRecord::Migration
|
||||
def up
|
||||
create_table :registrations_vchoices, :id => false do |t|
|
||||
create_table :registrations_vchoices, :id => false do |t|
|
||||
t.references :registration, :vchoice
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -30,6 +30,5 @@ class CreateEventUsers < ActiveRecord::Migration
|
|||
record.comment = ep.comment
|
||||
record.save!
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -65,10 +65,9 @@ class AddEventsPerWeekToConference < ActiveRecord::Migration
|
|||
conference.save
|
||||
end
|
||||
|
||||
|
||||
# Cumulate the previous weeks to get a snapshot
|
||||
TempConference.all.each do |conference|
|
||||
hash = conference.events_per_week.sort.to_h
|
||||
hash = conference.events_per_week.sort.to_hash
|
||||
previous = nil
|
||||
|
||||
hash.each do |week, values|
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ answer_no = Answer.create(:title => "No")
|
|||
|
||||
questions_yes_no = ["Do you need handicapped access to the venue?", "Are you attending with partner?", "Will you attend the social event(s)?", "Will you stay at suggested hotel?"]
|
||||
|
||||
for i in questions_yes_no do
|
||||
questions_yes_no.each do |i|
|
||||
q = Question.create(:title => i, :question_type_id => qtype_yesno.id, :global => true)
|
||||
|
||||
Qanswer.create(:question_id => q.id, :answer_id => answer_no.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue