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.1.1 test/support/issue_schema.rb
extendi-cassandra_object-1.1.0 test/support/issue_schema.rb
extendi-cassandra_object-1.0.20 test/support/issue_schema.rb
extendi-cassandra_object-1.0.19 test/support/issue_schema.rb
extendi-cassandra_object-1.0.18 test/support/issue_schema.rb
extendi-cassandra_object-1.0.17 test/support/issue_schema.rb
extendi-cassandra_object-1.0.16 test/support/issue_schema.rb
extendi-cassandra_object-1.0.15 test/support/issue_schema.rb
extendi-cassandra_object-1.0.14 test/support/issue_schema.rb
extendi-cassandra_object-1.0.13 test/support/issue_schema.rb
extendi-cassandra_object-1.0.12 test/support/issue_schema.rb
extendi-cassandra_object-1.0.11 test/support/issue_schema.rb
extendi-cassandra_object-1.0.10 test/support/issue_schema.rb
extendi-cassandra_object-1.0.9 test/support/issue_schema.rb
extendi-cassandra_object-1.0.8 test/support/issue_schema.rb
extendi-cassandra_object-1.0.7 test/support/issue_schema.rb
extendi-cassandra_object-1.0.6 test/support/issue_schema.rb
extendi-cassandra_object-1.0.5 test/support/issue_schema.rb
extendi-cassandra_object-1.0.4 test/support/issue_schema.rb
extendi-cassandra_object-1.0.1 test/support/issue_schema.rb