class AddAdminEmailConfiguration < ActiveRecord::Migration[4.2]
  def self.up
    return if Configuration.column_names.include? 'admin_email'
    add_column :configurations, :admin_email, :string, default: 'unconfigured@openbuildservice.org'
  end

  def self.down
    remove_column :configurations, :admin_email
  end
end
