Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ruby on rails how do i store user profile data?
  2. rails g migration AddProfileDataToUsers
  3.  
  4. class AddProfileDataToUsers < ActiveRecord::Migration
  5.   change_table :users do |t|
  6.     t.add_column :name, :string
  7.     t.add_column :country, :string...
  8.     #whatever else you want to add to the user model here
  9.     end
  10. end