Sha256: d4976b1467c160071790dbe5330f160c83fa94c57453fff54dd6b6eb5c37d651

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

class Tag < ActiveRecord::Base
  set_table_name  :tag
  set_primary_key :tagid

  # Relationships
  has_and_belongs_to_many :items, :association_foreign_key => :itemid, :foreign_key => :tagid, :join_table => :tag_item

  # Constraints
  validates_numericality_of :refcount
  validates_presence_of :tag, :refcount
  validates_uniqueness_of :tag
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
legacy_data-0.2.1 examples/generated/j2ee_petstore_oracle/tag.rb
legacy_data-0.2.0 examples/generated/j2ee_petstore_oracle/tag.rb
legacy_data-0.1.12 examples/generated/j2ee_petstore_oracle/tag.rb
legacy_data-0.1.11 examples/generated/j2ee_petstore_oracle/tag.rb
legacy_data-0.1.10 examples/generated/j2ee_petstore_oracle/tag.rb