Files
grecia/db/migrate/20160224101038_change_spending_proposals_fields.rb
Julian Herrero 65c30c8d2d Remove migrations warning
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration
is deprecated. Please specify the Rails release the migration was
written for:

class MigrationClass < ActiveRecord::Migration[4.2]

(called from require at bin/rails:4)
2019-04-17 17:40:56 +02:00

17 lines
721 B
Ruby

class ChangeSpendingProposalsFields < ActiveRecord::Migration[4.2]
def change
remove_index :spending_proposals, column: :resolution
remove_column :spending_proposals, :legal, :boolean
remove_column :spending_proposals, :resolution, :string
remove_column :spending_proposals, :explanation, :text
add_column :spending_proposals, :price_explanation, :text
add_column :spending_proposals, :feasible_explanation, :text
add_column :spending_proposals, :internal_comments, :text
add_column :spending_proposals, :valuation_finished, :boolean, default: false
add_column :spending_proposals, :explanations_log, :text
add_column :spending_proposals, :administrator_id, :integer
end
end