Newer
Older
dmpopidor / db / migrate / 20180813114157_remove_logo_file_name_from_orgs.rb
@Bodacious Bodacious on 13 Aug 2018 240 bytes Remove redundant database tables and columns
class RemoveLogoFileNameFromOrgs < ActiveRecord::Migration
  def up
    if column_exists?(:orgs, :logo_file_name)
      remove_column :orgs, :logo_file_name
    end
  end

  def down
    add_column :orgs, :logo_file_name, :string
  end
end