Sha256: 31112c325e9294e9aef869a4a28d42d2e68f4e5d9ff8fc99aaac2524fb6a36b3

Contents?: true

Size: 229 Bytes

Versions: 5

Compression:

Stored size: 229 Bytes

Contents

class Category < ActiveRecord::Base
  set_table_name  :category
  set_primary_key :categoryid

  # Relationships
  has_many :products, :foreign_key => :categoryid

  # Constraints
  validates_presence_of :name, :description
end

Version data entries

5 entries across 5 versions & 1 rubygems

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