mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
added display_name to users
This commit is contained in:
parent
d75c381506
commit
81055c49c5
2 changed files with 7 additions and 1 deletions
5
db/migrate/20141104143648_add_display_name_to_users.rb
Normal file
5
db/migrate/20141104143648_add_display_name_to_users.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddDisplayNameToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :display_name, :string
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20141102153520) do
|
||||
ActiveRecord::Schema.define(version: 20141104143648) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -69,6 +69,7 @@ ActiveRecord::Schema.define(version: 20141102153520) do
|
|||
t.integer "asked_count", default: 0, null: false
|
||||
t.integer "answered_count", default: 0, null: false
|
||||
t.integer "commented_count", default: 0, null: false
|
||||
t.string "display_name"
|
||||
end
|
||||
|
||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||
|
|
Loading…
Reference in a new issue