23 lines
1.0 KiB
Ruby
23 lines
1.0 KiB
Ruby
class CreateUsers < ActiveRecord::Migration
|
|
def change
|
|
create_table :users do |t|
|
|
t.string :name, :unique => true, :null => false
|
|
t.string :password_digest, :null => false
|
|
t.string :ign, :unique => true, :null => false
|
|
t.string :email, :unique => true, :null => false
|
|
t.string :confirm_code, :null => false
|
|
t.text :about
|
|
t.string :last_ip
|
|
t.string :skype, :unique => true
|
|
t.boolean :skype_public, :default => false
|
|
t.string :youtube, :unique => true
|
|
t.string :youtube_channelname
|
|
t.string :twitter, :unique => true
|
|
t.datetime :last_login
|
|
|
|
t.references :role, :null => false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end |