2018-11-13 07:27:31 +00:00
|
|
|
class CreateImportExportUploads < ActiveRecord::Migration[4.2]
|
2018-06-25 13:10:26 +00:00
|
|
|
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
|