Sha256: 67e285688bb518771bfa0a9af66b0039a0642c0f381ed80fae5bcfe136aab997

Contents?: true

Size: 336 Bytes

Versions: 6

Compression:

Stored size: 336 Bytes

Contents

# encoding: utf-8
class Person
  include Mongoid::Document
  # mindapp begin
  include Mongoid::Timestamps
  field :fname, :type => String
  field :lname, :type => String
  field :sex, :type => Integer
  belongs_to :address
  field :dob, :type => Date
  field :phone, :type => String
  field :photo, :type => String
  # mindapp end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mindapp2-0.1.1.5 lib/generators/mindapp/templates/app/models/person.rb
mindapp2-0.1.1.4 lib/generators/mindapp/templates/app/models/person.rb
mindapp2-0.1.1.3 lib/generators/mindapp/templates/app/models/person.rb
mindapp2-0.1.1.2 lib/generators/mindapp/templates/app/models/person.rb
mindapp2-0.1.1.1 lib/generators/mindapp/templates/app/models/person.rb
mindapp2-0.1.0 lib/generators/mindapp/templates/app/models/person.rb