diff --git a/db/migrate/20141104143648_add_display_name_to_users.rb b/db/migrate/20141104143648_add_display_name_to_users.rb new file mode 100644 index 00000000..9e783036 --- /dev/null +++ b/db/migrate/20141104143648_add_display_name_to_users.rb @@ -0,0 +1,5 @@ +class AddDisplayNameToUsers < ActiveRecord::Migration + def change + add_column :users, :display_name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index c68efab2..dfcff7e1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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