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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue