Ruby on Rails
Monday, June 13, 2016
You might try to set `self.table_name = 'raw_data'` in the RawDatum class though I'm not sure what it's side-effects would be (if any).
Would the following design work for you?
model ArchModel
# Include common functionality here.
end
class RawDatum < ActiveRecord::Base
include ArchModel
end
-- Greg Navis
I help tech companies to scale Heroku-hosted Rails apps.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt-HBPT2rQi-H_JOws1y_vq5NFBnCi1HbCzzz434xXr4SQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment