summaryrefslogtreecommitdiff
path: root/db/migrate/20200305200641_create_terraform_states.rb
blob: 8429d5cfeb31ad42976da5c5623332aa4e0d7f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class CreateTerraformStates < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  # rubocop:disable Migration/PreventStrings
  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
  # rubocop:enable Migration/PreventStrings
end