Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 to check this file into your version control system.
- ActiveRecord::Schema.define(:version => 20090514215843) do
- create_table "carts", :force => true do |t|
- t.datetime "purchased_at"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- create_table "categories", :force => true do |t|
- t.string "name"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- create_table "line_items", :force => true do |t|
- t.integer "unit_price", :limit => 10, :precision => 10, :scale => 0
- t.integer "product_id"
- t.integer "cart_id"
- t.integer "quantity"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- create_table "order_transactions", :force => true do |t|
- t.integer "order_id"
- t.string "action"
- t.integer "amount"
- t.boolean "success"
- t.string "authorization"
- t.string "message"
- t.text "params"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- create_table "orders", :force => true do |t|
- t.integer "cart_id"
- t.string "ip_address"
- t.string "first_name"
- t.string "last_name"
- t.string "card_type"
- t.date "card_expires_on"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "express_token"
- t.string "express_payer_id"
- t.string "billing_address"
- t.string "billing_address2"
- t.string "billing_city"
- t.string "billing_state"
- t.string "billing_zip"
- end
- create_table "products", :force => true do |t|
- t.integer "category_id"
- t.string "name"
- t.integer "price", :limit => 10, :precision => 10, :scale => 0
- t.text "description"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- create_table "users", :force => true do |t|
- t.string "login", :limit => 40
- t.string "name", :limit => 100, :default => ""
- t.string "email", :limit => 100
- t.string "crypted_password", :limit => 40
- t.string "salt", :limit => 40
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "remember_token", :limit => 40
- t.datetime "remember_token_expires_at"
- t.string "activation_code", :limit => 40
- t.datetime "activated_at"
- t.string "state", :default => "passive"
- t.datetime "deleted_at"
- end
- add_index "users", ["login"], :name => "index_users_on_login", :unique => true
- end
Add Comment
Please, Sign In to add comment