added user model
This commit is contained in:
10
front-api/db/migrate/20150218053655_create_users.rb
Normal file
10
front-api/db/migrate/20150218053655_create_users.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateUsers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :first_name
|
||||
t.string :last_name
|
||||
t.string :email
|
||||
t.string :password_digest
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150207120207) do
|
||||
ActiveRecord::Schema.define(version: 20150218053655) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -86,10 +86,8 @@ ActiveRecord::Schema.define(version: 20150207120207) do
|
||||
end
|
||||
|
||||
create_table "sub_categories", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.integer "category_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "name"
|
||||
t.integer "category_id"
|
||||
end
|
||||
|
||||
create_table "units", force: :cascade do |t|
|
||||
@@ -99,4 +97,11 @@ ActiveRecord::Schema.define(version: 20150207120207) do
|
||||
t.string "number_of_pieces_suffix"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "first_name"
|
||||
t.string "last_name"
|
||||
t.string "email"
|
||||
t.string "password_digest"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user