Add version to migration files

These migrations were backported after upgrading to Rails 5.
This commit is contained in:
Javi Martín
2019-05-28 16:40:52 +02:00
parent 241ee313f1
commit 8f69399799
5 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
class AddBallotLineCounterCachedToBudgetBallots < ActiveRecord::Migration
class AddBallotLineCounterCachedToBudgetBallots < ActiveRecord::Migration[4.2]
def change
add_column :budget_ballots, :ballot_lines_count, :integer, default: 0
end

View File

@@ -1,4 +1,4 @@
class AddSlugToPolls < ActiveRecord::Migration
class AddSlugToPolls < ActiveRecord::Migration[4.2]
def change
add_column :polls, :slug, :string
end

View File

@@ -1,4 +1,4 @@
class AddAdminToDocuments < ActiveRecord::Migration
class AddAdminToDocuments < ActiveRecord::Migration[4.2]
def change
add_column :documents, :admin, :boolean, default: false
end

View File

@@ -1,4 +1,4 @@
class RemoveQuestionAndExternalUrlFromProposals < ActiveRecord::Migration
class RemoveQuestionAndExternalUrlFromProposals < ActiveRecord::Migration[4.2]
def change
remove_column :proposals, :question, :string
remove_column :proposals, :external_url, :string

View File

@@ -1,4 +1,4 @@
class RemoveQuestionAndExternalUrlFromLegislationProposals < ActiveRecord::Migration
class RemoveQuestionAndExternalUrlFromLegislationProposals < ActiveRecord::Migration[4.2]
def change
remove_column :legislation_proposals, :question, :string
remove_column :legislation_proposals, :external_url, :string