Sha256: a777931b3029e6f8698aa44fa515a3abb1b964d9ee4b7558c7df1a31221c9638

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

# create_table :product_feature_applicabilities do |t|
#   t.references :feature_of_record, :polymorphic => true
#   t.references :product_feature
#
#   t.boolean :is_mandatory
#
#   t.timestamps
# end
#
# add_index :product_feature_applicabilities, [:feature_of_record_type, :feature_of_record_id], :name => 'prod_feature_record_idx'

class ProductFeatureApplicability < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  belongs_to :feature_of_record, polymorphic: true
  belongs_to :product_feature
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_products-4.2.0 app/models/product_feature_applicability.rb