Sha256: 455fc8e87d85e8de2692b6eb5c3411e889e39638563512b223b8e484a2ad34c8
Contents?: true
Size: 437 Bytes
Versions: 15
Compression:
Stored size: 437 Bytes
Contents
# This migration comes from fe_engine (originally 20141109154522) class MoveConditionalIdsUsedForChoiceFieldToTheirOwnColumn < ActiveRecord::Migration[4.2] def change add_column Fe::Element.table_name, :choice_field_id, :integer Fe::Element.reset_column_information Fe::Element.where(conditional_type: nil).where("conditional_id is not null").update_all("choice_field_id = conditional_id, conditional_id = null") end end
Version data entries
15 entries across 15 versions & 1 rubygems