Sha256: 6b2bfd370b41b6e6c1d4a1086df3f270026d9a2071844b61e68bcf20bc1792f5

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

class Profile
  
  include DataMapper::Resource
  
  # properties
  
  property :id,        Serial
  property :person_id, Integer, :nullable => false
  
  property :nick,      String,  :nullable => false
  
  # associations
  
  belongs_to :person
  
  has 1, :address

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.11.0 spec/fixtures/profile.rb