2012-09-23 02:39:12 +00:00
|
|
|
class CreateUsers < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :users do |t|
|
|
|
|
t.string :name
|
|
|
|
t.string :email
|
2013-01-01 22:45:35 +00:00
|
|
|
t.string :code, :limit => 8
|
|
|
|
t.string :joinedwithcode, :limit => 8
|
2012-09-23 02:39:12 +00:00
|
|
|
t.string :crypted_password
|
|
|
|
t.string :password_salt
|
|
|
|
t.string :persistence_token
|
|
|
|
t.string :perishable_token
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|