clarion/db/migrate/20161011005420_add_descriptions_for_all_events.rb
2019-04-28 22:02:02 +03:00

12 lines
211 B
Ruby

class Event < ActiveRecord::Base
end
class AddDescriptionsForAllEvents < ActiveRecord::Migration[4.2]
def up
Event.where(description: [nil, ""]).update_all(description: "n/a")
end
def down
end
end