17 lines
373 B
Ruby
17 lines
373 B
Ruby
|
#encoding: utf-8
|
||
|
class CreateUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :users do |t|
|
||
|
t.string :username
|
||
|
t.string :password_digest
|
||
|
t.string :email
|
||
|
t.boolean :admin
|
||
|
t.datetime :last_login_time
|
||
|
t.datetime :last_reply_time
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :users, :username
|
||
|
add_index :users, :email
|
||
|
end
|
||
|
end
|