- string
- text (long text, up to 64k, often used for text areas)
- datetime
- date
- integer
- binary
- boolean
- float
- decimal (for financial data)
- time
- timestamp
Here is an example of using rails 3.x scaffolding with data types, run from the Rails application root directory:
ruby script/rails generate scaffold Modelname name:string title:string employed_on:date remarks:text
0 comments:
Post a Comment