lib/declare_schema/model/field_spec.rb
def schema_attributes(col_spec)
        @sql_options.merge(type: @type).tap do |attrs|
          attrs[:default] = Column.deserialize_default_value(col_spec, @type, attrs[:default])
        end.compact
      end
# returns the attributes for schema migrations as a Hash
# omits name and position since those are meta-data above the schema
# omits keys with nil values
returns the attributes for schema migrations as a Hash
omits name and position since those are meta-data above the schema
omits keys with nil values
returns the attributes for schema migrations as a Hash omits name and position since those are meta - data above the schema omits keys with nil values
def schema_attributes(col_spec)
        @sql_options.merge(type: @type).tap do |attrs|
          attrs[:default] = Column.deserialize_default_value(col_spec, @type, attrs[:default])
        end.compact
      end
def schema_attributes ( col_spec ) @sql_options . merge ( type : @type ) . tap do | attrs | attrs [ :default ] = Column . deserialize_default_value ( col_spec , @type , attrs [ :default ] ) end . compact end
returns the attributes for schema migrations as a Hash
omits name and position since those are meta-data above the schema
omits keys with nil values
returns the attributes for schema migrations as a Hash omits name and position since those are meta - data above the schema omits keys with nil values
col_spec