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)