diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-08-18 08:50:22 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-08-18 08:50:22 +0200 |
commit | 2a2473fd71d75bcda68f70500178d32587700ab0 (patch) | |
tree | 7451f388942b946d65775f7df556769d2fe9a803 | |
parent | 57498e6f5753ac1d092e1623bed4ee0fdac50480 (diff) | |
parent | 8bd064ec2b9f51461aa5407b8b171d0ba22d48ff (diff) | |
download | rails-2a2473fd71d75bcda68f70500178d32587700ab0.tar.gz rails-2a2473fd71d75bcda68f70500178d32587700ab0.tar.bz2 rails-2a2473fd71d75bcda68f70500178d32587700ab0.zip |
Merge pull request #21283 from ravindrakumawat/add_docs_for_pending_migration
Add Docs for ActiveRecord #check_pending [ci skip]
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index b7b508d853..b5b91451c7 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -376,6 +376,7 @@ module ActiveRecord attr_accessor :delegate # :nodoc: attr_accessor :disable_ddl_transaction # :nodoc: + # 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 |