Newer
Older
dmpopidor / db / migrate / 20180813114622_drop_table_file_uploads.rb
@Bodacious Bodacious on 13 Aug 2018 499 bytes Remove redundant database tables and columns
class DropTableFileUploads < ActiveRecord::Migration
  def up
    drop_table(:file_uploads) if table_exists?(:file_uploads)
  end

  def down
    create_table "file_uploads", force: :cascade do |t|
      t.string   "name"
      t.string   "title"
      t.text     "description"
      t.integer  "size"
      t.boolean  "published"
      t.string   "location"
      t.integer  "file_type_id"
      t.datetime "created_at",   null: false
      t.datetime "updated_at",   null: false
    end
  end
end