From ccc15a6b796bae4804ee45fcd201ef34f38337cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 16 Jan 2023 23:54:44 +0100 Subject: [PATCH] Fix schema.rb file We accidentally added the main_link_text and main_link_url fields (which will be added in Consul 1.4.0) in commit 900a1cc40. And the migration introduced in commit 44839c141 wasn't in sync with the schema it produces. So now we get the same contents we get when running db:migrate and we guarantee consistency in every database related to this project. --- db/schema.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 7c818c0048b..55853243c9d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -297,7 +297,6 @@ t.text "description" t.text "summary" t.string "name" - t.string "main_link_text" t.index ["budget_phase_id"], name: "index_budget_phase_translations_on_budget_phase_id" t.index ["locale"], name: "index_budget_phase_translations_on_locale" end @@ -309,7 +308,6 @@ t.datetime "starts_at" t.datetime "ends_at" t.boolean "enabled", default: true - t.string "main_link_url" t.index ["ends_at"], name: "index_budget_phases_on_ends_at" t.index ["kind"], name: "index_budget_phases_on_kind" t.index ["next_phase_id"], name: "index_budget_phases_on_next_phase_id" @@ -330,7 +328,6 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "name" - t.string "main_link_text" t.index ["budget_id"], name: "index_budget_translations_on_budget_id" t.index ["locale"], name: "index_budget_translations_on_locale" end @@ -375,7 +372,6 @@ t.text "description_informing" t.string "voting_style", default: "knapsack" t.boolean "published" - t.string "main_link_url" end create_table "campaigns", id: :serial, force: :cascade do |t| @@ -1455,7 +1451,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "locale" - t.boolean "is_news" + t.boolean "is_news", default: false t.datetime "news_date" end