It would be nice if the Rails generator fails to generate when you use the reserved words for a model. I wasted lot of time when I used words like monitor as a model name and class, type as an attribute for a model.
Here is a list of words that cannot be used.
Sunday, June 26, 2011
Wednesday, June 22, 2011
List of types to use in script/generate model
he attributes are SQL types, hence the following are supported:
* :primary_key
* :string
* :text
* :integer
* :float
* :decimal
* :datetime
* :timestamp
* :time
* :date
* :binary
* :boolean
Stolen from stackoverflow
* :primary_key
* :string
* :text
* :integer
* :float
* :decimal
* :datetime
* :timestamp
* :time
* :date
* :binary
* :boolean
Stolen from stackoverflow
Wednesday, June 15, 2011
Subscribe to:
Posts (Atom)