[from now] 2014/11/26 17:02:49

diff --git a/Gemfile b/Gemfile
index abe7753..99dd140 100644
--- a/Gemfile
+++ b/Gemfile
@@ -40,7 +40,6 @@ group :development, :test do
   gem 'annotate'
   gem 'better_errors'
   gem 'binding_of_caller'
-  gem 'database_rewinder'
   gem 'hirb'
   gem 'hirb-unicode'
   gem 'pry'
diff --git a/Gemfile.lock b/Gemfile.lock
index 4fd51cb..b1035da 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -85,7 +85,6 @@ GEM
       simplecov (>= 0.7)
       term-ansicolor
       thor
-    database_rewinder (0.4.1)
     debug_inspector (0.0.2)
     debugger-linecache (1.2.0)
     devise (3.4.1)
@@ -289,7 +288,6 @@ DEPENDENCIES
   coffee-rails (~> 4.0.0)
   compass-rails
   coveralls
-  database_rewinder
   devise
   groundworkcss
   guard-rspec
diff --git a/app/models/benefactor.rb b/app/models/benefactor.rb
index d11028b..d9cdd1e 100644
--- a/app/models/benefactor.rb
+++ b/app/models/benefactor.rb
@@ -1,3 +1,35 @@
+# ## Schema Information
+#
+# Table name: `benefactors`
+#
+# ### Columns
+#
+# Name              | Type               | Attributes
+# ----------------- | ------------------ | ---------------------------
+# **`id`**          | `integer`          | `not null, primary key`
+# **`work`**        | `string(255)`      |
+# **`lastname`**    | `string(255)`      | `not null`
+# **`firstname`**   | `string(255)`      | `not null`
+# **`last_yomi`**   | `string(255)`      |
+# **`first_yomi`**  | `string(255)`      |
+# **`sex`**         | `integer`          | `default(0), not null`
+# **`zip`**         | `integer`          |
+# **`address`**     | `string(255)`      |
+# **`tel`**         | `integer`          |
+# **`email`**       | `string(255)`      |
+# **`birthday`**    | `string(255)`      |
+# **`portrait`**    | `string(255)`      |
+# **`user_id`**     | `integer`          | `indexed`
+# **`misc`**        | `text`             |
+# **`created_at`**  | `datetime`         |
+# **`updated_at`**  | `datetime`         |
+#
+# ### Indexes
+#
+# * `index_benefactors_on_user_id`:
+#     * **`user_id`**
+#
+
 class Benefactor < ActiveRecord::Base
   belongs_to :user
   enum sex: [:unknown, :male, :female]
diff --git a/app/models/user.rb b/app/models/user.rb
index e0c0ec2..53c6f64 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,3 +1,33 @@
+# ## Schema Information
+#
+# Table name: `users`
+#
+# ### Columns
+#
+# Name                          | Type               | Attributes
+# ----------------------------- | ------------------ | ---------------------------
+# **`id`**                      | `integer`          | `not null, primary key`
+# **`email`**                   | `string(255)`      | `default(""), not null, indexed`
+# **`encrypted_password`**      | `string(255)`      | `default(""), not null`
+# **`reset_password_token`**    | `string(255)`      | `indexed`
+# **`reset_password_sent_at`**  | `datetime`         |
+# **`remember_created_at`**     | `datetime`         |
+# **`sign_in_count`**           | `integer`          | `default(0), not null`
+# **`current_sign_in_at`**      | `datetime`         |
+# **`last_sign_in_at`**         | `datetime`         |
+# **`current_sign_in_ip`**      | `string(255)`      |
+# **`last_sign_in_ip`**         | `string(255)`      |
+# **`created_at`**              | `datetime`         |
+# **`updated_at`**              | `datetime`         |
+#
+# ### Indexes
+#
+# * `index_users_on_email` (_unique_):
+#     * **`email`**
+# * `index_users_on_reset_password_token` (_unique_):
+#     * **`reset_password_token`**
+#
+
 class User < ActiveRecord::Base
   # Include default devise modules. Others available are:
   # :confirmable, :lockable, :timeoutable and :omniauthable
diff --git a/config/routes.rb b/config/routes.rb
index daa39b0..d431c38 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,34 @@
+# == Route Map
+#
+#                   Prefix Verb   URI Pattern                     Controller#Action
+#                     root GET    /                               home#index
+#              benefactors GET    /benefactors(.:format)          benefactors#index
+#                          POST   /benefactors(.:format)          benefactors#create
+#           new_benefactor GET    /benefactors/new(.:format)      benefactors#new
+#          edit_benefactor GET    /benefactors/:id/edit(.:format) benefactors#edit
+#               benefactor GET    /benefactors/:id(.:format)      benefactors#show
+#                          PATCH  /benefactors/:id(.:format)      benefactors#update
+#                          PUT    /benefactors/:id(.:format)      benefactors#update
+#                          DELETE /benefactors/:id(.:format)      benefactors#destroy
+#               home_index GET    /home/index(.:format)           home#index
+#                home_show GET    /home/show(.:format)            home#show
+#         new_user_session GET    /users/sign_in(.:format)        devise/sessions#new
+#             user_session POST   /users/sign_in(.:format)        devise/sessions#create
+#     destroy_user_session DELETE /users/sign_out(.:format)       devise/sessions#destroy
+#            user_password POST   /users/password(.:format)       devise/passwords#create
+#        new_user_password GET    /users/password/new(.:format)   devise/passwords#new
+#       edit_user_password GET    /users/password/edit(.:format)  devise/passwords#edit
+#                          PATCH  /users/password(.:format)       devise/passwords#update
+#                          PUT    /users/password(.:format)       devise/passwords#update
+# cancel_user_registration GET    /users/cancel(.:format)         devise/registrations#cancel
+#        user_registration POST   /users(.:format)                devise/registrations#create
+#    new_user_registration GET    /users/sign_up(.:format)        devise/registrations#new
+#   edit_user_registration GET    /users/edit(.:format)           devise/registrations#edit
+#                          PATCH  /users(.:format)                devise/registrations#update
+#                          PUT    /users(.:format)                devise/registrations#update
+#                          DELETE /users(.:format)                devise/registrations#destroy
+#
+
 Rails.application.routes.draw do
   root 'home#index'

diff --git a/lib/tasks/auto_annotate_models.rake b/lib/tasks/auto_annotate_models.rake
new file mode 100644
index 0000000..e3a543c
--- /dev/null
+++ b/lib/tasks/auto_annotate_models.rake
@@ -0,0 +1,34 @@
+# NOTE: only doing this in development as some production environments (Heroku)
+# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
+# NOTE: to have a dev-mode tool do its thing in production.
+if Rails.env.development?
+  task :set_annotation_options do
+    # You can override any of these by setting an environment variable of the
+    # same name.
+    Annotate.set_defaults({
+      'position_in_routes'   => "before",
+      'position_in_class'    => "before",
+      'position_in_test'     => "before",
+      'position_in_fixture'  => "before",
+      'position_in_factory'  => "before",
+      'show_indexes'         => "true",
+      'simple_indexes'       => "true",
+      'model_dir'            => "app/models",
+      'include_version'      => "false",
+      'require'              => "",
+      'exclude_tests'        => "false",
+      'exclude_fixtures'     => "false",
+      'exclude_factories'    => "false",
+      'ignore_model_sub_dir' => "false",
+      'skip_on_db_migrate'   => "false",
+      'format_bare'          => "true",
+      'format_rdoc'          => "false",
+      'format_markdown'      => "true",
+      'sort'                 => "false",
+      'force'                => "false",
+      'trace'                => "false",
+    })
+  end
+
+  Annotate.load_tasks
+end
diff --git a/spec/models/benefactor_spec.rb b/spec/models/benefactor_spec.rb
index c53b5ec..94235b5 100644
--- a/spec/models/benefactor_spec.rb
+++ b/spec/models/benefactor_spec.rb
@@ -1,3 +1,35 @@
+# ## Schema Information
+#
+# Table name: `benefactors`
+#
+# ### Columns
+#
+# Name              | Type               | Attributes
+# ----------------- | ------------------ | ---------------------------
+# **`id`**          | `integer`          | `not null, primary key`
+# **`work`**        | `string(255)`      |
+# **`lastname`**    | `string(255)`      | `not null`
+# **`firstname`**   | `string(255)`      | `not null`
+# **`last_yomi`**   | `string(255)`      |
+# **`first_yomi`**  | `string(255)`      |
+# **`sex`**         | `integer`          | `default(0), not null`
+# **`zip`**         | `integer`          |
+# **`address`**     | `string(255)`      |
+# **`tel`**         | `integer`          |
+# **`email`**       | `string(255)`      |
+# **`birthday`**    | `string(255)`      |
+# **`portrait`**    | `string(255)`      |
+# **`user_id`**     | `integer`          | `indexed`
+# **`misc`**        | `text`             |
+# **`created_at`**  | `datetime`         |
+# **`updated_at`**  | `datetime`         |
+#
+# ### Indexes
+#
+# * `index_benefactors_on_user_id`:
+#     * **`user_id`**
+#
+
 require 'rails_helper'

 RSpec.describe Benefactor, :type => :model do
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 0bc0e60..43cfaf9 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,3 +1,33 @@
+# ## Schema Information
+#
+# Table name: `users`
+#
+# ### Columns
+#
+# Name                          | Type               | Attributes
+# ----------------------------- | ------------------ | ---------------------------
+# **`id`**                      | `integer`          | `not null, primary key`
+# **`email`**                   | `string(255)`      | `default(""), not null, indexed`
+# **`encrypted_password`**      | `string(255)`      | `default(""), not null`
+# **`reset_password_token`**    | `string(255)`      | `indexed`
+# **`reset_password_sent_at`**  | `datetime`         |
+# **`remember_created_at`**     | `datetime`         |
+# **`sign_in_count`**           | `integer`          | `default(0), not null`
+# **`current_sign_in_at`**      | `datetime`         |
+# **`last_sign_in_at`**         | `datetime`         |
+# **`current_sign_in_ip`**      | `string(255)`      |
+# **`last_sign_in_ip`**         | `string(255)`      |
+# **`created_at`**              | `datetime`         |
+# **`updated_at`**              | `datetime`         |
+#
+# ### Indexes
+#
+# * `index_users_on_email` (_unique_):
+#     * **`email`**
+# * `index_users_on_reset_password_token` (_unique_):
+#     * **`reset_password_token`**
+#
+
 require 'rails_helper'

 RSpec.describe User, :type => :model do
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 2f39f2f..176e657 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -5,7 +5,6 @@ require File.expand_path("../../config/environment", __FILE__)
 require 'rspec/rails'
 # Add additional requires below this line. Rails is not loaded until this point!
 require 'devise'
-#require 'database_rewinder'

 require 'coveralls'
 Coveralls.wear!
@@ -56,13 +55,5 @@ RSpec.configure do |config|
   # https://relishapp.com/rspec/rspec-rails/docs
   config.infer_spec_type_from_file_location!

-  #config.before :suite do
-  #  DatabaseRewinder.clean_all
-  #end
-
-  #config.after :each do
-  #  DatabaseRewinder.clean
-  #end
-
-  #config.include Devise::TestHelpers, :type => :controller
+  config.include Devise::TestHelpers, :type => :controller
 end