agenda-libre-ruby/db/migrate/20180408212139_change_event...

11 lines
280 B
Ruby

# Events contacts are no longer required
class ChangeEventsNullContact < ActiveRecord::Migration[5.1]
def up
change_column :events, :contact, :string, default: '', null: true
end
def down
change_column :events, :contact, :string, default: '', null: false
end
end