Sha256: c555727d67f29fa9125e68db94bf0e9732c106741193605213d94ca3695c93e5
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
class <%= class_name %> include DataMapper::Resource property :id, Serial <% for attribute in attributes -%> property :<%= attribute.name %>, <%= attribute.type.to_s.capitalize %>, :nullable => false <% end -%> <% unless options[:skip_timestamps] %> property :created_at, DateTime, :nullable => false property :updated_at, DateTime, :nullable => false <% end -%> end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datamapper4rail-0.1.0 | generators/dm_model/templates/model.rb |
datamapper4rail-0.2.0 | generators/dm_model/templates/model.rb |