Newer
Older
dmpopidor / db / migrate / 20180813114614_drop_table_file_types.rb
@Bodacious Bodacious on 13 Aug 2018 416 bytes Remove redundant database tables and columns
class DropTableFileTypes < ActiveRecord::Migration

  def up
    drop_table(:file_types) if table_exists?(:file_types)
  end

  def down
    create_table "file_types", force: :cascade do |t|
      t.string   "name"
      t.string   "icon_name"
      t.integer  "icon_size"
      t.string   "icon_location"
      t.datetime "created_at",    null: false
      t.datetime "updated_at",    null: false
    end
  end
end