lib/declare_schema/model.rb
# Declares the "foo_type" field that accompanies the "foo_id"
# field for a polymorphic belongs_to
Declares the "foo_type" field that accompanies the "foo_id"
field for a polymorphic belongs_to
Declares the " foo_type " field that accompanies the " foo_id " field for a polymorphic belongs_to
def _declare_polymorphic_type_field(foreign_type, column_options)
        declare_field(foreign_type, :string, **column_options.merge(limit: 255))
      end
def _declare_polymorphic_type_field ( foreign_type , column_options ) declare_field ( foreign_type , :string , ** column_options . merge ( limit : 255 ) ) end
Declares the "foo_type" field that accompanies the "foo_id"
field for a polymorphic belongs_to
Declares the " foo_type " field that accompanies the " foo_id " field for a polymorphic belongs_to
# FIXME: Before declare_schema was extracted, this used to now do: # never_show(type_col) # That needs doing somewhere
foreign_type
<not_specific>
column_options
<not_specific>