From 56c797348cb41a305fea93b8450e51b796786830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 8 Nov 2019 18:38:27 +0100 Subject: [PATCH] Remove old milestone tables These tables are obsolete since commit c0f6fa18, and their content was migrated in version 0.18 with the task added in commit 4c3dadf1. --- ...91108173350_remove_old_milestone_tables.rb | 11 +++++++ db/schema.rb | 33 +------------------ 2 files changed, 12 insertions(+), 32 deletions(-) create mode 100644 db/migrate/20191108173350_remove_old_milestone_tables.rb diff --git a/db/migrate/20191108173350_remove_old_milestone_tables.rb b/db/migrate/20191108173350_remove_old_milestone_tables.rb new file mode 100644 index 000000000..a7afb214e --- /dev/null +++ b/db/migrate/20191108173350_remove_old_milestone_tables.rb @@ -0,0 +1,11 @@ +class RemoveOldMilestoneTables < ActiveRecord::Migration[5.0] + def up + drop_table :budget_investment_milestone_translations + drop_table :budget_investment_statuses + drop_table :budget_investment_milestones + end + + def down + fail ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index 183a1cd2b..c0c5db67d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20191107193003) do +ActiveRecord::Schema.define(version: 20191108173350) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -219,37 +219,6 @@ ActiveRecord::Schema.define(version: 20191107193003) do t.index ["group_id"], name: "index_budget_headings_on_group_id", using: :btree end - create_table "budget_investment_milestone_translations", force: :cascade do |t| - t.integer "budget_investment_milestone_id", null: false - t.string "locale", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "title" - t.text "description" - t.index ["budget_investment_milestone_id"], name: "index_6770e7675fe296cf87aa0fd90492c141b5269e0b", using: :btree - t.index ["locale"], name: "index_budget_investment_milestone_translations_on_locale", using: :btree - end - - create_table "budget_investment_milestones", force: :cascade do |t| - t.integer "investment_id" - t.string "title", limit: 80 - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.datetime "publication_date" - t.integer "status_id" - t.index ["status_id"], name: "index_budget_investment_milestones_on_status_id", using: :btree - end - - create_table "budget_investment_statuses", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "hidden_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["hidden_at"], name: "index_budget_investment_statuses_on_hidden_at", using: :btree - end - create_table "budget_investment_translations", force: :cascade do |t| t.integer "budget_investment_id", null: false t.string "locale", null: false