Skip to content

Instantly share code, notes, and snippets.

@Phoenix23A
Created February 22, 2017 18:50
Show Gist options
  • Save Phoenix23A/115742e9ec46d1a014c8de005d10068c to your computer and use it in GitHub Desktop.
Save Phoenix23A/115742e9ec46d1a014c8de005d10068c to your computer and use it in GitHub Desktop.
ActiveRecord::Schema.define(version: 20160203161649) do
create_table "comments", force: :cascade do |t|
t.integer "user_id"
t.text "body"
t.integer "rating"
t.integer "product_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["product_id"], name: "index_comments_on_product_id"
t.index ["user_id"], name: "index_comments_on_user_id"
end
create_table "orders", force: :cascade do |t|
t.integer "user_id"
t.integer "product_id"
t.float "total"
t.index ["product_id"], name: "index_orders_on_product_id"
t.index ["user_id"], name: "index_orders_on_user_id"
end
create_table "products", force: :cascade do |t|
t.string "name"
t.text "description"
t.string "image_url"
t.string "color"
t.datetime "created_at"
t.datetime "updated_at"
t.decimal "price"
end
create_table "users", force: :cascade do |t|
t.string "first_name"
t.string "last_name"
t.datetime "created_at"
t.datetime "updated_at"
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.boolean "admin", default: false, null: false
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment