No commit activity in last 3 years
No release in over 3 years
Rails engine that checks for pending migrations and presents an error screen that allows you to manage your migrations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 5.1
 Project Readme

MigrationButton

Rails engine for running migrations via browser.

MigrationButton

Installation

Add this line to your application's Gemfile:

gem 'migration_button'

And then execute:

$ bundle

Set :migration_button in config/environments/development.rb like so:

config.active_record.migration_error = :migration_button

Now if there are pending migrations you will be presented with the page for running them. You can always visit this page under http://localhost:3000/__migration_button.

Contributing

Clone the repo.

Install the dependencies with:

$ bundle

Run the tests with:

$ MIGRATION_BUTTON=1 bundle exec rails test test/*

Develop -> commit -> make a pull request 😎

License

The gem is available as open source under the terms of the MIT License.