お世話になっています。
下記のエラーにより、テストが出来なくなってしまい
困っています。
$ bundle exec rspec spec/
/Users/ユーザー名/.rvm/gems/ruby-2.0.0-p645@railstutorial_rails_4_0/gems/activerecord-4.0.5/lib/active_record/migration.rb:383:in `check_pending!': Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=test' to resolve this issue. (ActiveRecord::PendingMigrationError)
テストを実行すると、エラーが出てしまい
bin/rake db:migrate RAILS_ENV=testを実行しなさいと出てきたので、
$ bundle exec rake db:migrate RAILS_ENV=test
== 20150727232621 AddIndexToUsersEmail: migrating =============================
-- add_index(:users, :email, {:unique=>true})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: no such table: main.users: CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")/Users/ユーザー名/.rvm/gems/ruby-2.0.0-p645@railstutorial_rails_4_0/gems/sqlite3-1.3.8/lib/sqlite3/database.rb:91:in `initialize'
ここで止まってしまいます。
すみませんが、おたすけください。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/07/31 07:55