diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb b/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb new file mode 100644 index 0000000..5aef7d4 --- /dev/null +++ b/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb @@ -0,0 +1,5 @@ +class ChangeMiniEnvironmentIdToModelId < ActiveRecord::Migration[5.1] + def change + rename_column :finished_terraform_jobs, :mini_environment_id, :model_id + end +end diff --git a/db/schema.rb b/db/schema.rb index 3fedd35..420b048 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,13 +10,13 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180329035512) do +ActiveRecord::Schema.define(version: 20180406082851) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "finished_terraform_jobs", force: :cascade do |t| - t.integer "mini_environment_id" + t.integer "model_id" t.string "job_class" t.datetime "created_at", null: false t.datetime "updated_at", null: false |