I\'m new to Ruby and Rails and I\'m running Rails 3 on Ruby 1.9.2.
I want to create a model, so I looked at the documentation to get the table definition that I want, bu
Try some tricks: belongs_to and index
rails g model User username:string:index group:belongs_to
This will create:
class User < ActiveRecord::Base belongs_to :group attr_accessible :username end