Sha256: c4b30ce387778dc091a6f68709ea9af5134c049b0b353cbefc1379b8f8f79214

Contents?: true

Size: 298 Bytes

Versions: 21

Compression:

Stored size: 298 Bytes

Contents

class IssueSchemaChild < CassandraObject::BaseSchema
  string :id
  string :description
  string :title
  float :field

  belongs_to :issue_schema_father
  string :issue_schema_father_id

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