From 65f0aefcd75dd6c4947a5a2401dfff44a3783b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= <ivan@pokecode.net> Date: Thu, 9 Nov 2023 16:36:18 +0100 Subject: [PATCH] rename migration --- ...cidim_awesome_extra_fields.decidim_decidim_awesome.rb} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename db/migrate/{20231026164623_create_decidim_awesome_weight_caches.decidim_decidim_awesome.rb => 20231026164623_create_decidim_awesome_extra_fields.decidim_decidim_awesome.rb} (61%) diff --git a/db/migrate/20231026164623_create_decidim_awesome_weight_caches.decidim_decidim_awesome.rb b/db/migrate/20231026164623_create_decidim_awesome_extra_fields.decidim_decidim_awesome.rb similarity index 61% rename from db/migrate/20231026164623_create_decidim_awesome_weight_caches.decidim_decidim_awesome.rb rename to db/migrate/20231026164623_create_decidim_awesome_extra_fields.decidim_decidim_awesome.rb index aa0d3692..781fd3f0 100644 --- a/db/migrate/20231026164623_create_decidim_awesome_weight_caches.decidim_decidim_awesome.rb +++ b/db/migrate/20231026164623_create_decidim_awesome_extra_fields.decidim_decidim_awesome.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true # This migration comes from decidim_decidim_awesome (originally 20231006113841) -class CreateDecidimAwesomeWeightCaches < ActiveRecord::Migration[6.0] +class CreateDecidimAwesomeProposalExtraFields < ActiveRecord::Migration[6.0] def change - create_table :decidim_awesome_weight_caches do |t| + create_table :decidim_awesome_proposal_extra_fields do |t| # this might be polymorphic in the future (if other types of votes are supported) - t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_proposals_weights_cache" } + t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_extra_fields_on_proposal" } - t.jsonb :totals + t.jsonb :vote_weight_totals t.integer :weight_total, default: 0 t.timestamps end