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/02_create_users.rb
jomo 20d31494dc fix sql uniqueness not working
turns out :unique is actually not an option, see
http://apidock.com/rails/v4.2.1/ActiveRecord/ConnectionAdapters/TableDefinition/column

weird enough this never caused trouble
2015-08-26 01:39:07 +02:00

26 lines
770 B
Ruby

class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :uuid, null: false
t.string :name, null: false
t.string :password_digest, null: false
t.string :ign, null: false
t.string :email, null: false
t.text :about
t.string :last_ip
t.string :skype
t.boolean :skype_public, default: false
t.string :youtube
t.string :youtube_channelname
t.string :twitter
t.boolean :donor, default: false
t.string :email_token
t.boolean :confirmed, default: false
t.datetime :last_seen
t.references :role, null: false, default: Role.get(:normal)
t.timestamps
end
end
end