Remove index from application_settings uuid column

parent 237e48a7
......@@ -7,12 +7,10 @@ class AddUuidToApplicationSettings < ActiveRecord::Migration
def up
add_column :application_settings, :uuid, :string
add_concurrent_index :application_settings, :uuid
execute("UPDATE application_settings SET uuid = #{quote(SecureRandom.uuid)}")
end
def down
remove_index :application_settings, :uuid if index_exists?(:application_settings, :uuid)
remove_column :application_settings, :uuid
end
end
......@@ -132,8 +132,6 @@ ActiveRecord::Schema.define(version: 20170328010804) do
t.string "uuid"
end
add_index "application_settings", ["uuid"], name: "index_application_settings_on_uuid", using: :btree
create_table "approvals", force: :cascade do |t|
t.integer "merge_request_id", null: false
t.integer "user_id", null: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment