Skip to content

Instantly share code, notes, and snippets.

@azuby
Created August 9, 2011 21:23
Show Gist options
  • Save azuby/1135240 to your computer and use it in GitHub Desktop.
Save azuby/1135240 to your computer and use it in GitHub Desktop.
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :first_name
t.string :last_name
t.string :email
t.string :password_digest
t.string :auth_token
t.timestamps
end
add_index :users, :email, :unique => true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment