Skip to content

Raise errors in development mode when there are pending migrations to run.

License

Notifications You must be signed in to change notification settings

vroy/rails_pending_migration_errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Pending Migration Errors

Append warnings or raise an exception in development mode when there are pending migrations to run.

It is inspired by this feature that made it in Rails 4.

Note: this has only been tested against Rails 3.2.13 on ruby 2.0.0p247.

Installation

Add this line to your application's Gemfile:

gem 'rails_pending_migration_errors', group: :development

And then execute:

$ bundle

If you want to raise errors on page load instead of the default warning, add this to config/environments/development.rb:

config.after_initialize do
  RailsPendingMigrationErrors.page_load = true
end

About

Raise errors in development mode when there are pending migrations to run.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages