debian-mirror-gitlab/db/migrate/20200305200641_create_terraform_states.rb

15 lines
391 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
class CreateTerraformStates < ActiveRecord::Migration[6.0]
DOWNTIME = false
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
end