Sha256: ba3d59250e1882eaa89966a04bf6b42f41e69f647af93517358d2f1d65c3bc9a
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
fields do <% for attribute in field_attributes -%> <%= "%-#{max_attribute_length}s" % attribute.name %> :<%= attribute.type %><%= case attribute.type.to_s when 'string' ', limit: 255' else '' end %> <% end -%> <% if options[:timestamps] -%> timestamps <% end -%> end <% for bt in bts -%> belongs_to :<%= bt %> <% end -%> <%= "\n" unless bts.empty? -%> <% for hm in hms -%> has_many :<%= hm %>, dependent: :destroy <% end -%> <%= "\n" unless hms.empty? -%>
Version data entries
4 entries across 4 versions & 1 rubygems