# This file is auto-generated from the current state of the database. Instead of editing this file, # please use the migrations feature of ActiveRecord 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 => 1) do create_table "auction_items", :force => true do |t| t.integer "auction_id", :default => 0, :null => false t.integer "position", :default => 0, :null => false t.string "name", :limit => 200 t.text "description" end add_index "auction_items", ["auction_id"], :name => "auction_id" add_index "auction_items", ["id"], :name => "id" create_table "auctions", :force => true do |t| t.string "name", :limit => 200 t.datetime "datetime" t.string "location", :limit => 200 t.text "description" end create_table "categories", :force => true do |t| t.string "name", :limit => 100 end create_table "images", :force => true do |t| t.string "name" t.text "description" t.integer "auction_item_id" t.integer "item_id" t.integer "position" t.string "content_type" t.string "filename" t.string "thumbnail" t.integer "size" t.integer "width" t.integer "height" end create_table "items", :force => true do |t| t.string "name", :limit => 200 t.text "description" t.integer "category_id" t.integer "position" end end