如果ActiveRecord :: Migrator.needs_migration会引发ActiveRecord :: PendingMigrationError?

时间:2016-10-25 11:53:40

标签: ruby-on-rails ruby activerecord communityengine

  def check_pending!(connection = Base.connection)
    raise ActiveRecord::PendingMigrationError if ActiveRecord::Migrator.needs_migration?(connection)
  end

  def load_schema_if_pending!

我已经运行:bin / rake db:migrate RAILS_ENV =开发但仍然没有任何反应,我试图将社区引擎添加到我的rails 4.2 app,帮助任何人?

由于

1 个答案:

答案 0 :(得分:0)

根据rake community_engine:install:migrations,您需要在rake db:migrate之前运行image: phpunit/phpunit:5.0.3 pipelines: default: - step: script: # Modify the commands below to build your repository. - composer --version - phpunit --version - composer global require "fxp/composer-asset-plugin:^1.2.0" - composer install - php init --env=Development --overwrite=All