Sha256: 565d1b0030fd158133b0894593e5ec79da7e9cdebd22009b710ce0fd2b0db04e

Contents?: true

Size: 293 Bytes

Versions: 21

Compression:

Stored size: 293 Bytes

Contents

class IssueSchema < CassandraObject::BaseSchema
  string :id
  string :description
  string :title
  float :field
  integer :intero

  before_create { self.description ||= 'funny' }

  validates :title, presence: true

  self.keys = '(id)'

  def self.for_key key
    where_ids(key)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
extendi-cassandra_object-1.0.0 test/support/issue_schema.rb