Displaying 2 results from an estimated 2 matches for "dbhash".
Did you mean:
db_hash
2006 Jul 06
4
Need advice on code-like columns
Hello!
I''m trying to move to rails from traditional web app.
As Rails has some conventions about table schema,
I met some obstacles.
Questions.
1.
This is a sort of general question. Do you make a code table for things
like the following?
Activity Status Codes
01001: Open
01002: Pending
01003: Delayed
01004: Cancelled
01005: Closed
(The first 2 digits are code category.)
Would you
2006 Aug 13
2
Arbitrary "Columns" for ActiveRecord
I''m having a bit of a tough time coming up with a good solution for what
I''m trying to do. I''ve come up with a couple of solutions that work
pretty well but many use way too many queries or are just not very good.
Basically I want to store something of a property list for a model.
class Model < AR
has_many :properties, :dependent => :delete
end
class