app/models/fields/custom_field.rb
# Change database column type only if safe to do so
# Note: columns will never be renamed or destroyed
#------------------------------------------------------------------------------
Change database column type only if safe to do so
Note: columns will never be renamed or destroyed
Change database column type only if safe to do so Note : columns will never be renamed or destroyed
def update_column
    if errors.empty? && db_transition_safety(as_was) == :safe
      klass.connection.change_column(table_name, name, column_type, column_options)
      klass.reset_column_information
      klass.serialize_custom_fields!
    end
  end
def update_column if errors . empty? && db_transition_safety ( as_was ) == :safe klass . connection . change_column ( table_name , name , column_type , column_options ) klass . reset_column_information klass . serialize_custom_fields! end end
Change database column type only if safe to do so
Note: columns will never be renamed or destroyed
Change database column type only if safe to do so Note : columns will never be renamed or destroyed