smithbrandon/bloccit — pull request #3 by smithbrandon (2014-11-30 18:13:03+00:00)
Title: still have an issue with reseting the db

Not sure why but when I reset the db i'm getting the following error.

```bash
Brandons-MacBook-Pro:bloccit MyAccount$ rake db:reset
-- create_table("comments", {:force=>true})
-> 0.0059s
-- add_index("comments", ["post_id"], {:name=>"index_comments_on_post_id"})
-> 0.0012s
-- add_index("comments", ["user_id"], {:name=>"index_comments_on_user_id"})
-> 0.0013s
-- create_table("posts", {:force=>true})
-> 0.0011s
-- add_index("posts", ["topic_id"], {:name=>"index_posts_on_topic_id"})
-> 0.0010s
-- add_index("posts", ["user_id"], {:name=>"index_posts_on_user_id"})
-> 0.0011s
-- create_table("topics", {:force=>true})
-> 0.0026s
-- create_table("users", {:force=>true})
-> 0.0017s
-- add_index("users", ["email"], {:name=>"index_users_on_email", :unique=>true})
-> 0.0010s
-- add_index("users", ["reset_password_token"], {:name=>"index_users_on_reset_password_token", :unique=>true})
-> 0.0013s
-- initialize_schema_migrations_table()
-> 0.0028s
-- create_table("comments", {:force=>true})
-> 0.0014s
-- add_index("comments", ["post_id"], {:name=>"index_comments_on_post_id"})
-> 0.0010s
-- add_index("comments", ["user_id"], {:name=>"index_comments_on_user_id"})
-> 0.0012s
-- create_table("posts", {:force=>true})
-> 0.0019s
-- add_index("posts", ["topic_id"], {:name=>"index_posts_on_topic_id"})
-> 0.0008s
-- add_index("posts", ["user_id"], {:name=>"index_posts_on_user_id"})
-> 0.0009s
-- create_table("topics", {:force=>true})
-> 0.0013s
-- create_table("users", {:force=>true})
-> 0.0014s
-- add_index("users", ["email"], {:name=>"index_users_on_email", :unique=>true})
-> 0.0009s
-- add_index("users", ["reset_password_token"], {:name=>"index_users_on_reset_password_token", :unique=>true})
-> 0.0011s
-- initialize_schema_migrations_table()
-> 0.0018s
rake aborted!
NoMethodError: undefined method `comment' for #
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/attribute_methods.rb:435:in `method_missing'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/attribute_methods.rb:213:in `method_missing'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validator.rb:165:in `block in validate'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validator.rb:164:in `each'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validator.rb:164:in `validate'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:447:in `public_send'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:447:in `block in make_lambda'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:184:in `call'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:184:in `block in simple'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `call'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `run_callbacks'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validations.rb:376:in `run_validations!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validations/callbacks.rb:111:in `block in run_validations!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:82:in `run_callbacks'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validations/callbacks.rb:111:in `run_validations!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activemodel-4.1.8/lib/active_model/validations.rb:317:in `valid?'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/validations.rb:70:in `valid?'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/validations.rb:77:in `perform_validations'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/validations.rb:57:in `save!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/transactions.rb:273:in `block in save!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/transactions.rb:208:in `transaction'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/transactions.rb:273:in `save!'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/validations.rb:41:in `create!'
/Users/MyAccount/code/bloccit/db/seeds.rb:45:in `block in '
/Users/MyAccount/code/bloccit/db/seeds.rb:44:in `times'
/Users/MyAccount/code/bloccit/db/seeds.rb:44:in `'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `load'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `block in load'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:241:in `load'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/railties-4.1.8/lib/rails/engine.rb:543:in `load_seed'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/tasks/database_tasks.rb:200:in `load_seed'
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/railties/databases.rake:174:in `block (2 levels) in '
/Users/MyAccount/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.8/lib/active_record/railties/databases.rake:133:in `block (2 levels) in '
Tasks: TOP => db:setup => db:seed
(See full trace by running task with --trace)
```