LoginSignup
0
0

More than 5 years have passed since last update.

localhost3000でエラーが起きます

Posted at

ActiveRecord::PendingMigrationError
Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development
Extracted source (around line #392):
390
391
392
393
394
395
def check_pending!(connection = Base.connection)
raise ActiveRecord::PendingMigrationError if ActiveRecord::Migrator.needs_migration?(connection)
end

def load_schema_if_pending!

上記のエラーができましたのでターミナルでRAILS_ENV=developmentと打ちましたら下記のようになりました。
aberyuuokunoAir:mooovi ryuki$ rake db:migrate RAILS_ENV=development
rake aborted!
NameError: uninitialized constant AddUserIdToReviews

NameError: uninitialized constant AddUserIdToReviews

Tasks: TOP => db:migrate
(See full trace by running task with --trace)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0