Unable to run plugin spec

In my development environment I am unable to run plugin:spec. It returning the below error

/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval': PG::UndefinedTable: ERROR:  relation "user_auth_tokens" does not exist (ActiveRecord::StatementInvalid)
LINE 5:                WHERE a.attrelid = '"user_auth_tokens"'::regc...
                                          ^
:               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 = '"user_auth_tokens"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum

I also tried to run individual plugin:spec command. I already done db migration too.

1 Like

Did you migrate on test?

RAILS_ENV=test bundle exec rake DB:migrate
7 Likes

No. I missed it.

Thank you. Now it is working :thumbsup:.

1 Like