This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/db/migrate/00000000000002_create_users.rb
2013-10-07 04:59:21 +02:00

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