2018-12-23 12:14:25 +05:30
|
|
|
class CreateImportExportUploads < ActiveRecord::Migration[4.2]
|
2018-11-08 19:23:39 +05:30
|
|
|
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
|