collab/db/schema.rb

75 lines
2.7 KiB
Ruby
Raw Normal View History

2010-03-04 06:22:45 +00: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.
#
# 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.
2010-03-15 15:47:32 +00:00
ActiveRecord::Schema.define(:version => 20100312004836) do
2010-03-04 06:22:45 +00:00
create_table "projects", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
2010-03-05 06:48:00 +00:00
t.integer "owner_id"
t.boolean "archived", :default => false
end
add_index "projects", ["owner_id"], :name => "index_projects_on_owner_id"
create_table "projects_users", :id => false, :force => true do |t|
t.integer "project_id"
t.integer "user_id"
2010-03-04 06:22:45 +00:00
end
create_table "tasks", :force => true do |t|
t.string "name"
t.integer "project_id"
t.text "description"
t.integer "parent"
t.datetime "created_at"
t.datetime "updated_at"
2010-03-05 06:48:00 +00:00
t.integer "owner_id"
t.integer "assigned_id"
2010-03-04 06:22:45 +00:00
end
2010-03-05 06:48:00 +00:00
add_index "tasks", ["assigned_id"], :name => "index_tasks_on_assigned_id"
add_index "tasks", ["owner_id"], :name => "index_tasks_on_owner_id"
create_table "users", :force => true do |t|
t.string "email"
t.string "encrypted_password", :limit => 128
t.string "salt", :limit => 128
t.string "confirmation_token", :limit => 128
t.string "remember_token", :limit => 128
t.boolean "email_confirmed", :default => false, :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "short_name"
t.string "phone"
t.string "mobile"
t.string "im"
end
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["id", "confirmation_token"], :name => "index_users_on_id_and_confirmation_token"
add_index "users", ["remember_token"], :name => "index_users_on_remember_token"
2010-03-15 15:47:32 +00:00
create_table "walls", :force => true do |t|
t.integer "project_id"
t.text "text"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
end
2010-03-05 06:48:00 +00:00
add_foreign_key "projects", "users", :name => "projects_owner_id_fk", :column => "owner_id"
add_foreign_key "tasks", "users", :name => "tasks_owner_id_fk", :column => "owner_id"
2010-03-04 06:22:45 +00:00
end