main
1# encoding: UTF-8
2# This file is auto-generated from the current state of the database. Instead
3# of editing this file, please use the migrations feature of Active Record to
4# incrementally modify your database, and then regenerate this schema definition.
5#
6# Note that this schema.rb definition is the authoritative source for your
7# database schema. If you need to create the application database on another
8# system, you should be using db:schema:load, not running all the migrations
9# from scratch. The latter is a flawed and unsustainable approach (the more migrations
10# you'll amass, the slower it'll run and the greater likelihood for issues).
11#
12# It's strongly recommended to check this file into your version control system.
13
14ActiveRecord::Schema.define(:version => 20130615140836) do
15
16 create_table "cakes", :force => true do |t|
17 t.string "name"
18 t.datetime "created_at", :null => false
19 t.datetime "updated_at", :null => false
20 t.string "photo"
21 t.integer "category_id"
22 t.integer "user_id"
23 end
24
25 add_index "cakes", ["category_id"], :name => "index_cakes_on_category_id"
26 add_index "cakes", ["updated_at"], :name => "index_cakes_on_updated_at"
27
28 create_table "categories", :force => true do |t|
29 t.string "name"
30 t.string "slug"
31 t.datetime "created_at", :null => false
32 t.datetime "updated_at", :null => false
33 end
34
35 create_table "users", :force => true do |t|
36 t.string "email", :default => "", :null => false
37 t.string "encrypted_password", :default => "", :null => false
38 t.string "reset_password_token"
39 t.datetime "reset_password_sent_at"
40 t.datetime "remember_created_at"
41 t.integer "sign_in_count", :default => 0
42 t.datetime "current_sign_in_at"
43 t.datetime "last_sign_in_at"
44 t.string "current_sign_in_ip"
45 t.string "last_sign_in_ip"
46 t.string "confirmation_token"
47 t.datetime "confirmed_at"
48 t.datetime "confirmation_sent_at"
49 t.string "unconfirmed_email"
50 t.integer "failed_attempts", :default => 0
51 t.string "unlock_token"
52 t.datetime "locked_at"
53 t.string "authentication_token"
54 t.datetime "created_at", :null => false
55 t.datetime "updated_at", :null => false
56 end
57
58 add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true
59 add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
60 add_index "users", ["email"], :name => "index_users_on_email", :unique => true
61 add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
62 add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
63
64end