Sha256: af79d21d035a7a21c775d46cb94766d04a74a839a87d4f09ca07368b1183aad0

Contents?: true

Size: 229 Bytes

Versions: 5

Compression:

Stored size: 229 Bytes

Contents

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

  # Relationships
  

  # Constraints
  validates_presence_of :categoryid, :name, :description
  validates_uniqueness_of :productid
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
legacy_data-0.2.1 examples/generated/j2ee_petstore_sqlite3/product.rb
legacy_data-0.2.0 examples/generated/j2ee_petstore_sqlite3/product.rb
legacy_data-0.1.12 examples/generated/j2ee_petstore_sqlite3/product.rb
legacy_data-0.1.11 examples/generated/j2ee_petstore_sqlite3/product.rb
legacy_data-0.1.10 examples/generated/j2ee_petstore_sqlite3/product.rb