diff --git a/db/schema.rb b/db/schema.rb index 51db5c38..abd744ae 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,43 +9,43 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20080617044632) do +ActiveRecord::Schema.define(:version => 38) do create_table "contexts", :force => true do |t| - t.string "name", :default => "", :null => false - t.integer "position", :limit => 11 - t.boolean "hide", :default => false - t.integer "user_id", :limit => 11, :default => 1 + t.string "name", :null => false + t.integer "position" + t.boolean "hide", :default => false + t.integer "user_id", :default => 1 t.datetime "created_at" t.datetime "updated_at" end - add_index "contexts", ["user_id"], :name => "index_contexts_on_user_id" add_index "contexts", ["user_id", "name"], :name => "index_contexts_on_user_id_and_name" + add_index "contexts", ["user_id"], :name => "index_contexts_on_user_id" create_table "notes", :force => true do |t| - t.integer "user_id", :limit => 11, :null => false - t.integer "project_id", :limit => 11, :null => false + t.integer "user_id", :null => false + t.integer "project_id", :null => false t.text "body" t.datetime "created_at" t.datetime "updated_at" end - add_index "notes", ["project_id"], :name => "index_notes_on_project_id" add_index "notes", ["user_id"], :name => "index_notes_on_user_id" + add_index "notes", ["project_id"], :name => "index_notes_on_project_id" create_table "open_id_associations", :force => true do |t| t.binary "server_url" t.string "handle" t.binary "secret" - t.integer "issued", :limit => 11 - t.integer "lifetime", :limit => 11 + t.integer "issued" + t.integer "lifetime" t.string "assoc_type" end create_table "open_id_nonces", :force => true do |t| t.string "nonce" - t.integer "created", :limit => 11 + t.integer "created" end create_table "open_id_settings", :force => true do |t| @@ -54,40 +54,40 @@ ActiveRecord::Schema.define(:version => 20080617044632) do end create_table "preferences", :force => true do |t| - t.integer "user_id", :limit => 11, :null => false + t.integer "user_id", :null => false t.string "date_format", :limit => 40, :default => "%d/%m/%Y", :null => false - t.integer "week_starts", :limit => 11, :default => 0, :null => false - t.integer "show_number_completed", :limit => 11, :default => 5, :null => false - t.integer "staleness_starts", :limit => 11, :default => 7, :null => false + t.integer "week_starts", :default => 0, :null => false + t.integer "show_number_completed", :default => 5, :null => false + t.integer "staleness_starts", :default => 7, :null => false t.boolean "show_completed_projects_in_sidebar", :default => true, :null => false t.boolean "show_hidden_contexts_in_sidebar", :default => true, :null => false - t.integer "due_style", :limit => 11, :default => 0, :null => false + t.integer "due_style", :default => 0, :null => false t.string "admin_email", :default => "butshesagirl@rousette.org.uk", :null => false - t.integer "refresh", :limit => 11, :default => 0, :null => false + t.integer "refresh", :default => 0, :null => false t.boolean "verbose_action_descriptors", :default => false, :null => false t.boolean "show_hidden_projects_in_sidebar", :default => true, :null => false t.string "time_zone", :default => "London", :null => false t.boolean "show_project_on_todo_done", :default => false, :null => false t.string "title_date_format", :default => "%A, %d %B %Y", :null => false - t.integer "mobile_todos_per_page", :limit => 11, :default => 6, :null => false + t.integer "mobile_todos_per_page", :default => 6, :null => false end add_index "preferences", ["user_id"], :name => "index_preferences_on_user_id" create_table "projects", :force => true do |t| - t.string "name", :default => "", :null => false - t.integer "position", :limit => 11 - t.integer "user_id", :limit => 11, :default => 1 + t.string "name", :null => false + t.integer "position" + t.integer "user_id", :default => 1 t.text "description" t.string "state", :limit => 20, :default => "active", :null => false t.datetime "created_at" t.datetime "updated_at" - t.integer "default_context_id", :limit => 11 + t.integer "default_context_id" t.datetime "completed_at" end - add_index "projects", ["user_id"], :name => "index_projects_on_user_id" add_index "projects", ["user_id", "name"], :name => "index_projects_on_user_id_and_name" + add_index "projects", ["user_id"], :name => "index_projects_on_user_id" create_table "sessions", :force => true do |t| t.string "session_id" @@ -98,10 +98,10 @@ ActiveRecord::Schema.define(:version => 20080617044632) do add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id" create_table "taggings", :force => true do |t| - t.integer "taggable_id", :limit => 11 - t.integer "tag_id", :limit => 11 + t.integer "taggable_id" + t.integer "tag_id" t.string "taggable_type" - t.integer "user_id", :limit => 11 + t.integer "user_id" end add_index "taggings", ["tag_id", "taggable_id", "taggable_type"], :name => "index_taggings_on_tag_id_and_taggable_id_and_taggable_type" @@ -115,27 +115,27 @@ ActiveRecord::Schema.define(:version => 20080617044632) do add_index "tags", ["name"], :name => "index_tags_on_name" create_table "todos", :force => true do |t| - t.integer "context_id", :limit => 11, :null => false - t.integer "project_id", :limit => 11 - t.string "description", :default => "", :null => false + t.integer "context_id", :null => false + t.integer "project_id" + t.string "description", :null => false t.text "notes" t.datetime "created_at" t.date "due" t.datetime "completed_at" - t.integer "user_id", :limit => 11, :default => 1 + t.integer "user_id", :default => 1 t.date "show_from" t.string "state", :limit => 20, :default => "immediate", :null => false end - add_index "todos", ["user_id", "state"], :name => "index_todos_on_user_id_and_state" - add_index "todos", ["user_id", "project_id"], :name => "index_todos_on_user_id_and_project_id" - add_index "todos", ["project_id"], :name => "index_todos_on_project_id" - add_index "todos", ["context_id"], :name => "index_todos_on_context_id" add_index "todos", ["user_id", "context_id"], :name => "index_todos_on_user_id_and_context_id" + add_index "todos", ["context_id"], :name => "index_todos_on_context_id" + add_index "todos", ["project_id"], :name => "index_todos_on_project_id" + add_index "todos", ["user_id", "project_id"], :name => "index_todos_on_user_id_and_project_id" + add_index "todos", ["user_id", "state"], :name => "index_todos_on_user_id_and_state" create_table "users", :force => true do |t| - t.string "login", :limit => 80, :default => "", :null => false - t.string "crypted_password", :limit => 40 + t.string "login", :limit => 80, :null => false + t.string "crypted_password", :limit => 40, :null => false t.string "token" t.boolean "is_admin", :default => false, :null => false t.string "first_name"