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:
committed by
Julian Herrero
parent
9f97b87304
commit
385784d09d
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user