mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
57 lines
2.1 KiB
Ruby
57 lines
2.1 KiB
Ruby
# 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 => 20101008175640) do
|
|
|
|
create_table "categories", :force => true do |t|
|
|
t.string "name"
|
|
t.text "description"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "photo_id"
|
|
t.string "base_colour"
|
|
t.integer "sort"
|
|
end
|
|
|
|
create_table "categories_photos", :id => false, :force => true do |t|
|
|
t.integer "category_id"
|
|
t.integer "photo_id"
|
|
end
|
|
|
|
create_table "photos", :force => true do |t|
|
|
t.string "flickr_url"
|
|
t.string "photo_file_name"
|
|
t.string "photo_content_type"
|
|
t.integer "photo_file_size"
|
|
t.datetime "photo_updated_at"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "title"
|
|
t.text "description"
|
|
t.integer "sort"
|
|
end
|
|
|
|
create_table "typus_users", :force => true do |t|
|
|
t.string "first_name", :default => "", :null => false
|
|
t.string "last_name", :default => "", :null => false
|
|
t.string "role", :null => false
|
|
t.string "email", :null => false
|
|
t.boolean "status", :default => false
|
|
t.string "token", :null => false
|
|
t.string "salt", :null => false
|
|
t.string "crypted_password", :null => false
|
|
t.string "preferences"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
end
|