Sha256: 2bd893295076635df3ed9226c76a041e0e2ca8291dea8c4fe803e5a31d088279

Contents?: true

Size: 536 Bytes

Versions: 30

Compression:

Stored size: 536 Bytes

Contents

# Various attribute field types

require 'db/boat'

module DB
  class Ship
    include Gummi::DbLayer::Document

    attribute :name,        Gummi::DbLayer::Fields::String
    attribute :tags,        Gummi::DbLayer::Fields::Keyword
    attribute :category,    Gummi::DbLayer::Fields::PathHierarchy
    attribute :height,      Gummi::DbLayer::Fields::PositiveInteger
    attribute :unsinkable,  Gummi::DbLayer::Fields::Boolean
    attribute :freetext,    Gummi::DbLayer::Fields::NgramAndPlain
    attribute :boat,        Boat

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gummi-1.0.10 spec/support/models/db/ship.rb
gummi-1.0.9 spec/support/models/db/ship.rb
gummi-1.0.8 spec/support/models/db/ship.rb
gummi-1.0.7 spec/support/models/db/ship.rb
gummi-1.0.6 spec/support/models/db/ship.rb
gummi-1.0.5 spec/support/models/db/ship.rb
gummi-1.0.4 spec/support/models/db/ship.rb
gummi-0.3.16 spec/support/models/db/ship.rb
gummi-1.0.3 spec/support/models/db/ship.rb
gummi-1.0.2 spec/support/models/db/ship.rb
gummi-1.0.0 spec/support/models/db/ship.rb
gummi-0.3.14 spec/support/models/db/ship.rb
gummi-0.3.13 spec/support/models/db/ship.rb
gummi-0.3.12 spec/support/models/db/ship.rb
gummi-0.3.11 spec/support/models/db/ship.rb
gummi-0.3.10 spec/support/models/db/ship.rb
gummi-0.3.9 spec/support/models/db/ship.rb
gummi-0.3.8 spec/support/models/db/ship.rb
gummi-0.3.7 spec/support/models/db/ship.rb
gummi-0.3.6 spec/support/models/db/ship.rb