forked from External/greenlight
personalized rooms page
This commit is contained in:
6
db/migrate/20161017203809_add_username_to_user.rb
Normal file
6
db/migrate/20161017203809_add_username_to_user.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class AddUsernameToUser < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :users, :username, :string
|
||||
add_index :users, :username, unique: true
|
||||
end
|
||||
end
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161017160526) do
|
||||
ActiveRecord::Schema.define(version: 20161017203809) do
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "provider", null: false
|
||||
@ -18,9 +18,11 @@ ActiveRecord::Schema.define(version: 20161017160526) do
|
||||
t.string "name"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "username"
|
||||
t.index ["provider", "uid"], name: "index_users_on_provider_and_uid", unique: true
|
||||
t.index ["provider"], name: "index_users_on_provider"
|
||||
t.index ["uid"], name: "index_users_on_uid"
|
||||
t.index ["username"], name: "index_users_on_username", unique: true
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user