search for: type1_attr

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

2006 Aug 17
0
Help with best-practice for Rails Model
...sing single-table inheritance? with something like: create_table "log_events", :force => true do |t| t.column "user_id", :integer t.column "event_at", :datetime t.column "note", :text t.column "type", :string t.column "type1_attr", :integer t.column "type2_attr", :integer end class LogEvent < ActiveRecord::Base class SubType1Event < LogEvent class SubType2Event < LogEvent If not, then how? (keeping it simple!) Since event_at is a datetime, how do I best do a find by only the Date p...