style fixes
This commit is contained in:
parent
6827f45d60
commit
e82a417874
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
class DeleteEventsWithoutUser < ActiveRecord::Migration
|
class DeleteEventsWithoutUser < ActiveRecord::Migration
|
||||||
|
|
||||||
class TempEvent < ActiveRecord::Base
|
class TempEvent < ActiveRecord::Base
|
||||||
self.table_name = 'events'
|
self.table_name = 'events'
|
||||||
end
|
end
|
||||||
|
|
@ -32,6 +31,6 @@ class DeleteEventsWithoutUser < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
raise ActiveRecord::IrreversibleMigration, 'Cannot reverse migration. Events deleted cannot be re-created'
|
raise ActiveRecord::IrreversibleMigration.new('Cannot reverse migration. Events deleted cannot be re-created')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue