I just booted the VM up again after learning about vagrant suspend
(which will save a lot of time, given my frequent full shutdowns), and tried to run the tests, but got a... database statement error?
[vagrant@precise32:/vagrant (translation_overrides)]$ bundle exec rspec spec/components/post_revisor_spec.rb
2014-05-12T17:46:10Z 5362 TID-164y2s INFO: Sidekiq client with redis options {:url=>"redis://localhost:6379/1", :namespace=>"sidekiq"}
MiniTest::Unit::TestCase is now Minitest::Test. From /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit/testcase.rb:8:in `<module:Unit>`
SiteSetting(id: integer, name: string, data_type: integer, value: text, created_at: datetime, updated_at: datetime)
--- snip ---
TopTopic(id: integer, topic_id: integer, yearly_posts_count: integer, yearly_views_count: integer, yearly_likes_count: integer, monthly_posts_count: integer, monthly_views_count: integer, monthly_likes_count: integer, weekly_posts_count: integer, weekly_views_count: integer, weekly_likes_count: integer, daily_posts_count: integer, daily_views_count: integer, daily_likes_count: integer, yearly_score: float, monthly_score: float, weekly_score: float, daily_score: float)
/vagrant/vendor/bundle/ruby/2.0.0/gems/seed-fu-discourse-2.2.1/lib/seed-fu/runner.rb:46:in `eval`: PG::Error: ERROR: relation "color_schemes" does not exist (ActiveRecord::StatementInvalid)
LINE 5: WHERE a.attrelid = '"color_schemes"'::regclas...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"color_schemes"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
from /vagrant/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `block in exec_no_cache`
from /vagrant/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log`
from /vagrant/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument`
--- snip ---
from /vagrant/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun`
It's saying that "color_schemes" doesn't exist, which is weird, because I just saw the db:migrate
adding a lot of those:
- ColorSchemeColor {:id=>89, :name=>"topic-list-star-color", :hex=>"cccccc", :color_scheme_id=>1}
- ColorSchemeColor {:id=>90, :name=>"topic-list-starred-color", :hex=>"e45735", :color_scheme_id=>1}
- ColorSchemeColor {:id=>91, :name=>"quote-background", :hex=>"f5f5f5", :color_scheme_id=>1}
Anyone got this before? Should I try to fix this somehow? Should I trash Vagrant and start up a new one?