2020-03-27 08:07:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateTerraformStates < ActiveRecord::Migration[6.0]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-03-27 08:07:43 -04:00
|
|
|
def change
|
|
|
|
create_table :terraform_states do |t|
|
|
|
|
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
|
|
|
|
t.timestamps_with_timezone null: false
|
|
|
|
t.integer :file_store, limit: 2
|
|
|
|
t.string :file, limit: 255
|
|
|
|
end
|
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-03-27 08:07:43 -04:00
|
|
|
end
|