app/models/fields/custom_field.rb
# Create a new column to hold the custom field data
#------------------------------------------------------------------------------
Create a new column to hold the custom field data
Create a new column to hold the custom field data
def add_column
    self.name = generate_column_name if name.blank?
    klass.connection.add_column(table_name, name, column_type, column_options)
    klass.reset_column_information
    klass.serialize_custom_fields!
  end
def add_column self . name = generate_column_name if name . blank? klass . connection . add_column ( table_name , name , column_type , column_options ) klass . reset_column_information klass . serialize_custom_fields! end
Create a new column to hold the custom field data
Create a new column to hold the custom field data