Cheat sheet for seeing what happens when you use rails generators.
Tests
> rails generate integration_test users_edit
rails g scaffold Foo foo_string:string foo_text:text foo_integer:integer foo_float:float foo_decimal:decimal foo_timestamp:timestamp foo_time:time foo_date:date foo_binary:binary foo_boolean:boolean
rake db:migrate
http://guides.rubyonrails.org/command_line.html#rails-generate
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html#method-i-column
Leave a Reply