Sha256: bce560235dc3ea9c11e31f90a66f356a66bc27faa39f716ec535ccbb89b210d3

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

module Scriptures
  class Chapter
    include DataMapper::Resource

    storage_names[:default] = 'chapters'

    property :id,           Integer, :key => true
    property :book_id,      Integer
    property :chapter,      Integer

    has n, :verses
    belongs_to :book
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scriptures-0.0.5 lib/scriptures/models/chapter.rb
scriptures-0.0.4 lib/scriptures/models/chapter.rb
scriptures-0.0.3 lib/scriptures/models/chapter.rb
scriptures-0.0.1 lib/scriptures/models/chapter.rb