Sha256: 4426c4eeeb9c918cdee98a28ef27f18df32a48e57ecc63e33b490dabd4be68e2

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

class Product < ActiveRecord::Base
  set_table_name  :product
  set_primary_key :productid

  # Relationships
  has_many :items, :foreign_key => :productid
  belongs_to :category, :foreign_key => :categoryid

  # Constraints
  validates_presence_of :categoryid, :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/product.rb
legacy_data-0.2.0 examples/generated/j2ee_petstore_oracle/product.rb
legacy_data-0.1.12 examples/generated/j2ee_petstore_oracle/product.rb
legacy_data-0.1.11 examples/generated/j2ee_petstore_oracle/product.rb
legacy_data-0.1.10 examples/generated/j2ee_petstore_oracle/product.rb