Add version to migration files
These migrations were backported after upgrading to Rails 5.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
class AddBallotLineCounterCachedToBudgetBallots < ActiveRecord::Migration
|
class AddBallotLineCounterCachedToBudgetBallots < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :budget_ballots, :ballot_lines_count, :integer, default: 0
|
add_column :budget_ballots, :ballot_lines_count, :integer, default: 0
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class AddSlugToPolls < ActiveRecord::Migration
|
class AddSlugToPolls < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :polls, :slug, :string
|
add_column :polls, :slug, :string
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class AddAdminToDocuments < ActiveRecord::Migration
|
class AddAdminToDocuments < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :documents, :admin, :boolean, default: false
|
add_column :documents, :admin, :boolean, default: false
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class RemoveQuestionAndExternalUrlFromProposals < ActiveRecord::Migration
|
class RemoveQuestionAndExternalUrlFromProposals < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
remove_column :proposals, :question, :string
|
remove_column :proposals, :question, :string
|
||||||
remove_column :proposals, :external_url, :string
|
remove_column :proposals, :external_url, :string
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class RemoveQuestionAndExternalUrlFromLegislationProposals < ActiveRecord::Migration
|
class RemoveQuestionAndExternalUrlFromLegislationProposals < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
remove_column :legislation_proposals, :question, :string
|
remove_column :legislation_proposals, :question, :string
|
||||||
remove_column :legislation_proposals, :external_url, :string
|
remove_column :legislation_proposals, :external_url, :string
|
||||||
|
|||||||
Reference in New Issue
Block a user