added display_name to users

This commit is contained in:
nilsding 2014-11-04 15:38:27 +01:00
parent d75c381506
commit 81055c49c5
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddDisplayNameToUsers < ActiveRecord::Migration
def change
add_column :users, :display_name, :string
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -69,6 +69,7 @@ ActiveRecord::Schema.define(version: 20141102153520) do
t.integer "asked_count", default: 0, null: false t.integer "asked_count", default: 0, null: false
t.integer "answered_count", default: 0, null: false t.integer "answered_count", default: 0, null: false
t.integer "commented_count", default: 0, null: false t.integer "commented_count", default: 0, null: false
t.string "display_name"
end end
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree