{"id":1465,"date":"2022-02-01T12:59:43","date_gmt":"2022-02-01T03:59:43","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=1465"},"modified":"2022-01-06T15:15:55","modified_gmt":"2022-01-06T06:15:55","slug":"pendingmigrationerror","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/02\/01\/pendingmigrationerror\/","title":{"rendered":"PendingMigrationError(\u30a8\u30e9\u30fc\u5bfe\u51e6)"},"content":{"rendered":"<h1>ActiveRecord::PendingMigrationError<\/h1>\n<h2>Migrations are pending. To resolve this issue, run: bin\/rails db:migrate RAILS_ENV=development<\/h2>\n<div id=\"frame-source-0\" class=\"source \">\n<div class=\"info\">Extracted source (around line\u00a0<strong>#576<\/strong>):<\/div>\n<div class=\"data\">\n<table class=\"lines\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<pre class=\"line_numbers\">574\r\n575\r\n576\r\n577\r\n578\r\n579\r\n<\/pre>\n<\/td>\n<td width=\"100%\">\n<div class=\"line\"># Raises &lt;tt&gt;ActiveRecord::PendingMigrationError&lt;\/tt&gt; error if any migrations are pending.<\/div>\n<div class=\"line\">def check_pending!(connection = Base.connection)<\/div>\n<div class=\"line active\">raise ActiveRecord::PendingMigrationError if ActiveRecord::Migrator.needs_migration?(connection)<\/div>\n<div class=\"line\">end<\/div>\n<div class=\"line\"><\/div>\n<div class=\"line\">def load_schema_if_pending!<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u89e3\u6c7a\u65b9\u6cd5(\u30de\u30a4\u30b0\u30ec\u30fc\u30c8\u3059\u308b)<\/h3>\n<pre><code>docker-compose exec web bundle exec rake db:migrate<\/code><\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ActiveRecord::PendingMigrationError Migrations are pending. To resolve this issue, run: bin\/rails db:migrate R [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27,26],"tags":[],"class_list":["post-1465","post","type-post","status-publish","format-standard","hentry","category-programming-note","category-trouble-shooting"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=1465"}],"version-history":[{"count":4,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1465\/revisions"}],"predecessor-version":[{"id":1469,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1465\/revisions\/1469"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=1465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=1465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}