Skip to content

Commit

Permalink
Adding User model, migration, and schema files.
Browse files Browse the repository at this point in the history
  • Loading branch information
sherrimitchell committed Oct 1, 2015
1 parent af0becf commit c0ad4dc
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class User < ActiveRecord::Base
end
18 changes: 18 additions & 0 deletions db/migrate/20150930235702_create_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :first_name
t.string :last_name
t.string :email
t.string :username
t.string :password
t.text :about_me
t.string :avatar
t.string :twitter
t.string :github
t.string :linkedin

t.timestamps null: false
end
end
end
31 changes: 31 additions & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20150930235702) do

create_table "users", force: :cascade do |t|
t.string "first_name"
t.string "last_name"
t.string "email"
t.string "username"
t.string "password"
t.text "about_me"
t.string "avatar"
t.string "twitter"
t.string "github"
t.string "linkedin"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

end

0 comments on commit c0ad4dc

Please sign in to comment.