Fix failing migrations when running rake db:migrate task

This patch adds 2 missing colons (:) for 2 migrations that are failing when
the `rake db:migrate` task is ran. Whilst already-committed-to-source-control-
and-ran-on-production-environments migrations shouldn't be modified whatsoever,
this change does not modify in any way the current database schema so, technically,
it shouldn't affect forks that might have ran these migrations already and those
CONSUL installations that haven't done so should be able to without problems
This commit is contained in:
Angel Perez
2018-08-17 09:26:41 -04:00
committed by Julian Herrero
parent 9f97b87304
commit 385784d09d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
class AddLegislationProposalsCountToTags < ActiveRecord::Migration class AddLegislationProposalsCountToTags < ActiveRecord::Migration
def change def change
add_column :tags, "legislation/proposals_count", :integer, default: 0 add_column :tags, "legislation/proposals_count", :integer, default: 0
add_index :tags, "legislation/proposals_count" add_index :tags, :"legislation/proposals_count"
end end
end end

View File

@@ -1,6 +1,6 @@
class AddLegislationProcessesCountToTags < ActiveRecord::Migration class AddLegislationProcessesCountToTags < ActiveRecord::Migration
def change def change
add_column :tags, "legislation/processes_count", :integer, default: 0 add_column :tags, "legislation/processes_count", :integer, default: 0
add_index :tags, "legislation/processes_count" add_index :tags, :"legislation/processes_count"
end end
end end