# encoding: UTF-8
# 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 => 20130205231418) do

  create_table "admins", :force => true do |t|
    t.string   "name"
    t.string   "login"
    t.string   "firstname"
    t.string   "avatar"
    t.string   "email",                  :default => "", :null => false
    t.string   "password_digest",        :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.datetime "created_at",                             :null => false
    t.datetime "updated_at",                             :null => false
  end

  create_table "pages", :force => true do |t|
    t.string   "title"
    t.string   "slug"
    t.integer  "page_type"
    t.text     "description"
    t.text     "keywords"
    t.text     "markdown_content"
    t.text     "html_content"
    t.text     "haml_content"
    t.boolean  "enabled"
    t.datetime "created_at",       :null => false
    t.datetime "updated_at",       :null => false
  end

  create_table "portfolio_images", :force => true do |t|
    t.string   "photo"
    t.string   "title"
    t.string   "slug"
    t.text     "tags"
    t.text     "description"
    t.datetime "shoot_at"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "portfolio_portfolio_images", :force => true do |t|
    t.integer  "portfolio_id"
    t.integer  "portfolio_image_id"
    t.datetime "created_at",         :null => false
    t.datetime "updated_at",         :null => false
  end

  add_index "portfolio_portfolio_images", ["portfolio_id"], :name => "index_portfolio_portfolio_images_on_portfolio_id"
  add_index "portfolio_portfolio_images", ["portfolio_image_id"], :name => "index_portfolio_portfolio_images_on_portfolio_image_id"

  create_table "portfolios", :force => true do |t|
    t.string   "title"
    t.string   "slug"
    t.string   "description"
    t.string   "keywords"
    t.integer  "content_type"
    t.text     "markdown_content"
    t.text     "html_content"
    t.text     "haml_content"
    t.boolean  "enabled"
    t.datetime "created_at",       :null => false
    t.datetime "updated_at",       :null => false
  end

end