Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ccfd841f7a
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (16 sloc) 0.433 kb
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users, :force => true do |t|
t.string :login, :email, :remember_token, :first_name, :last_name
t.string :crypted_password, :salt, :limit => 40
t.datetime :remember_token_expires_at
t.timestamps
end
%w(login email).each do |col|
add_index :users, col.to_sym
end
end
def self.down
drop_table :users
end
end
Jump to Line
Something went wrong with that request. Please try again.