2016-10-11 03:55:49 +03:00
|
|
|
class Event < ActiveRecord::Base
|
|
|
|
end
|
|
|
|
|
2019-04-28 11:56:16 +03:00
|
|
|
class AddDescriptionsForAllEvents < ActiveRecord::Migration[4.2]
|
2016-10-11 03:55:49 +03:00
|
|
|
def up
|
|
|
|
Event.where(description: [nil, '']).update_all(description: 'n/a')
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|