railsで「rails g scaffold user name:string age:intenger」
でscaffoldをやってみたところ、ローカルサーバー上で以下のようなエラー文がでました。
「Migrations are pending. To resolve this issue, run: bin/rails db:migrate RAILS_ENV=development」
とあるサイトにあった「scaffoldを試してみよう」的なやつでそっくりそのまま打ち込んだだけなのですがどういった意味のエラー文でしょうか?
# Raises <tt>ActiveRecord::PendingMigrationError</tt> error if any migrations are pending. def check_pending!(connection = Base.connection) #ここがエラー⇓ raise ActiveRecord::PendingMigrationError if ActiveRecord::Migrator.needs_migration?(connection) end def load_schema_if_pending!
回答3件
あなたの回答
tips
プレビュー