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
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
class CreateUsers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :uuid, unique: true, null: false
|
||||
t.string :name, unique: true, null: false
|
||||
t.string :uuid, null: false
|
||||
t.string :name, null: false
|
||||
t.string :password_digest, null: false
|
||||
t.string :ign, unique: true, null: false
|
||||
t.string :email, unique: true, null: false
|
||||
t.string :ign, null: false
|
||||
t.string :email, null: false
|
||||
t.text :about
|
||||
t.string :last_ip
|
||||
t.string :skype, unique: true
|
||||
t.string :skype
|
||||
t.boolean :skype_public, default: false
|
||||
t.string :youtube, unique: true
|
||||
t.string :youtube
|
||||
t.string :youtube_channelname
|
||||
t.string :twitter, unique: true
|
||||
t.string :twitter
|
||||
t.boolean :donor, default: false
|
||||
t.string :email_token
|
||||
t.boolean :confirmed, default: false
|
||||
|
||||
Reference in New Issue
Block a user