photomix/db/schema.rb

131 lines
4.9 KiB
Ruby
Raw Normal View History

2011-09-25 08:54:46 +02:00
# encoding: UTF-8
2010-10-11 16:03:34 +02:00
# 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.
2009-05-22 14:13:46 +02:00
#
2010-10-11 16:03:34 +02:00
# 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
2009-05-22 14:13:46 +02:00
# 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 => 20100412220801) do
2009-05-22 14:13:46 +02:00
create_table "albums", :force => true do |t|
t.string "title", :null => false
t.text "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-05-22 14:13:46 +02:00
t.text "path"
2009-06-02 00:08:57 +02:00
t.string "address"
t.float "longitude"
t.float "latitude"
t.text "note"
2009-05-22 14:13:46 +02:00
end
add_index "albums", ["id"], :name => "index_albums_on_id", :unique => true
2009-06-03 01:33:39 +02:00
create_table "collection_albums", :force => true do |t|
t.integer "collection_id"
t.integer "album_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-06-03 01:33:39 +02:00
end
add_index "collection_albums", ["album_id"], :name => "index_collection_albums_on_album_id"
add_index "collection_albums", ["collection_id"], :name => "index_collection_albums_on_collection_id"
2009-06-03 01:33:39 +02:00
create_table "collections", :force => true do |t|
t.string "title", :null => false
t.string "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-06-03 01:33:39 +02:00
end
add_index "collections", ["id"], :name => "index_collections_on_id", :unique => true
2009-05-22 22:38:52 +02:00
create_table "photo_tags", :force => true do |t|
t.integer "tag_id"
t.integer "photo_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-05-22 22:38:52 +02:00
end
add_index "photo_tags", ["photo_id"], :name => "index_photo_tags_on_photo_id"
add_index "photo_tags", ["tag_id"], :name => "index_photo_tags_on_tag_id"
2009-05-22 14:13:46 +02:00
create_table "photos", :force => true do |t|
2012-07-24 23:26:16 +02:00
t.string "title"
2009-05-22 14:13:46 +02:00
t.text "description"
t.integer "album_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2011-04-25 07:51:44 +02:00
t.text "path"
2009-06-03 01:33:39 +02:00
t.float "longitude"
t.float "latitude"
2012-07-24 23:26:16 +02:00
t.string "attachment"
2009-05-22 14:13:46 +02:00
end
add_index "photos", ["album_id"], :name => "index_photos_on_album_id"
add_index "photos", ["id"], :name => "index_photos_on_id", :unique => true
2009-06-05 14:18:03 +02:00
create_table "roles", :force => true do |t|
t.string "name"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-06-05 14:18:03 +02:00
end
2012-07-24 23:26:16 +02:00
create_table "roles_users", :id => false, :force => true do |t|
t.integer "role_id"
t.integer "user_id"
end
add_index "roles_users", ["role_id"], :name => "index_roles_users_on_role_id"
add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id"
2009-05-22 22:38:52 +02:00
create_table "tags", :force => true do |t|
t.string "title", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-05-22 22:38:52 +02:00
end
add_index "tags", ["id"], :name => "index_tags_on_id", :unique => true
2009-05-22 16:14:07 +02:00
create_table "users", :force => true do |t|
2012-07-24 23:26:16 +02:00
t.string "email", :default => "", :null => false
t.string "encrypted_password", :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.string "password_salt"
t.string "confirmation_token"
t.datetime "confirmed_at"
t.datetime "confirmation_sent_at"
t.string "unconfirmed_email"
t.integer "failed_attempts", :default => 0
t.string "unlock_token"
t.datetime "locked_at"
t.string "authentication_token"
t.string "first_name"
t.string "second_name"
t.string "surname"
t.string "userpic"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
2009-05-22 16:14:07 +02:00
end
2012-07-24 23:26:16 +02:00
add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true
add_index "users", ["confirmation_token"], :name => "index_users_on_confirmation_token", :unique => true
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
2009-05-22 14:13:46 +02:00
end