Adds two new fields to user

This commit is contained in:
kikito
2016-04-11 18:28:28 +02:00
parent 6c8ba0f25c
commit 3b754fd998
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class AddGenreAndDobToUsers < ActiveRecord::Migration
def change
add_column :users, :genre, :string, index: true, limit: 10
add_column :users, :date_of_birth, :datetime, index: true
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160406163649) do
ActiveRecord::Schema.define(version: 20160411161531) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -422,6 +422,8 @@ ActiveRecord::Schema.define(version: 20160406163649) do
t.string "oauth_email"
t.integer "geozone_id"
t.string "redeemable_code"
t.string "genre", limit: 10
t.datetime "date_of_birth"
end
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree