Sha256: 6a80c8ce88eae2be583fa85bbd1e32a9238979b1d012e1f1e9f145270dddd9ac
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
class AddUnitValueUpToQuestion < ActiveRecord::Migration def change add_column :citizen_budget_model_questions, :unit_value_up, :float rename_column :citizen_budget_model_questions, :unit_value, :unit_value_down end def up CitizenBudgetModel::Question.all.each do |question| question.update_attribute(:unit_value_up, question.unit_value_down) end end end
Version data entries
3 entries across 3 versions & 1 rubygems