clarion/db/migrate/20161011005420_add_descript...

12 lines
211 B
Ruby
Raw Normal View History

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