Displaying 1 result from an estimated 1 matches for "type2_attr".
Did you mean:
type1_attr
2006 Aug 17
0
Help with best-practice for Rails Model
...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
portion?
For a Date Range?
Should I use REST o...