summaryrefslogtreecommitdiff
path: root/db/migrate/20200416120128_add_columns_to_terraform_state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200416120128_add_columns_to_terraform_state.rb')
-rw-r--r--db/migrate/20200416120128_add_columns_to_terraform_state.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20200416120128_add_columns_to_terraform_state.rb b/db/migrate/20200416120128_add_columns_to_terraform_state.rb
deleted file mode 100644
index 65d25d842e5..00000000000
--- a/db/migrate/20200416120128_add_columns_to_terraform_state.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-class AddColumnsToTerraformState < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- # rubocop:disable Migration/PreventStrings
- def change
- add_column :terraform_states, :lock_xid, :string, limit: 255
- add_column :terraform_states, :locked_at, :datetime_with_timezone
- add_column :terraform_states, :locked_by_user_id, :bigint
- add_column :terraform_states, :uuid, :string, limit: 32, null: false # rubocop:disable Rails/NotNullColumn (table not used yet)
- add_column :terraform_states, :name, :string, limit: 255
- add_index :terraform_states, :locked_by_user_id # rubocop:disable Migration/AddIndex (table not used yet)
- add_index :terraform_states, :uuid, unique: true # rubocop:disable Migration/AddIndex (table not used yet)
- add_index :terraform_states, [:project_id, :name], unique: true # rubocop:disable Migration/AddIndex (table not used yet)
- remove_index :terraform_states, :project_id # rubocop:disable Migration/RemoveIndex (table not used yet)
- end
- # rubocop:enable Migration/PreventStrings
-end