Sha256: 3346b8e8d9d9b2f15efbd05a16993d22f99c819bf887fc3bbbeb8c1e99db3e13
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
# This migration comes from fe_engine (originally 20141109154522) class MoveConditionalIdsUsedForChoiceFieldToTheirOwnColumn < ActiveRecord::Migration 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe-1.0.0 | spec/dummy/db/migrate/20141203214031_move_conditional_ids_used_for_choice_field_to_their_own_column.fe_engine.rb |