search for: c2c_id

Displaying 1 result from an estimated 1 matches for "c2c_id".

Did you mean: c2_i
2006 Apr 23
0
Severe STI, HABTM with Attributes and 1.1
...uot;, :force => true do |t| t.column :node_id, :integer, :default => 0, :null => false t.column :node_fk_id, :integer, :default => 0, :null => false t.column :position, :integer t.column :foreign_type, :string end class NodesToNodes < ActiveRecord::Base set_primary_key :c2c_id acts_as_list :scope => :node end So basically I could have all sorts of Node types that used STI off the original Node table. And the if Foo < Node and Bar < Node I could set in Foo''s model that it HABTM Bars and at the same time order the Bars that Foo had. Now without push_a...