summaryrefslogtreecommitdiff
path: root/db/migrate/20180625113853_create_import_export_uploads.rb
blob: be42304b0ae011f3ecf006163d59445ee05e131b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CreateImportExportUploads < ActiveRecord::Migration
  DOWNTIME = false

  def change
    create_table :import_export_uploads do |t|
      t.datetime_with_timezone :updated_at, null: false

      t.references :project, index: true, foreign_key: { on_delete: :cascade }, unique: true

      t.text :import_file
      t.text :export_file
    end

    add_index :import_export_uploads, :updated_at
  end
end