adds first name and last name to users

This commit is contained in:
rgarcia
2015-07-17 19:46:10 +02:00
parent 83654042d9
commit 62d0a385ab
5 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
class AddFirstNameAndLastNameToUsers < ActiveRecord::Migration
def change
add_column :users, :first_name, :string
add_column :users, :last_name, :string
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: 20150716174358) do
ActiveRecord::Schema.define(version: 20150717164054) do
create_table "debates", force: :cascade do |t|
t.string "title"
@@ -34,6 +34,8 @@ ActiveRecord::Schema.define(version: 20150716174358) do
t.string "last_sign_in_ip"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "first_name"
t.string "last_name"
end
add_index "users", ["email"], name: "index_users_on_email", unique: true