Skip to content

Rodrigo Urubatan – About Code

Helping ruby developers to use the best tools for each job so they can solve hard problems, with less bugs and have more free time.

Menu
  • Home
  • My last presentations
  • About
  • Privacy Policy
Menu

ActiveRecord Migration UI gem

Posted on 2019-07-22 by Rodrigo Urubatan

Ok, I just found this really cool Gem!

After many years working with Rails, I’ve seen lots of times during development that error message saying to run migrations in console like this:

ActiveRecord::PendingMigrationError (
 
Migrations are pending. To resolve this issue, run:
 
        bin/rails db:migrate RAILS_ENV=development
 
):

Or the same message when you access your application through the browser:

But the ‘activerecord-migration-ui’ gem makes that error a lot prettier, like this:

And even allows you to run the migrations through the browser, but of course you should enable that only for the development environment 😀

To install this, just add this snipped to your Gemfile (or add the gem entry to an existing :development block):

group :development do
  gem 'active_record_migration_ui'
end

After that, do not forget to run “bundle install” and you are all set.

You’ll never see that error screen again, just the new and improved one that allows you to run your migrations from the comfort of your browser of choice 😀

For more information about the gem, to contribute or report bugs, just follow this link.

PS.: do you find useful posts about cool new gems like this?

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent posts

  • Why Embrace Nesting in Ruby Modules?
  • An easy way to have a local “Github Copilot” for free
  • SPA without touching Javascript – The magic of Ruby on rails and Hotwire
  • I see Dead Jobs everywhere (sidekiq DeadSet)
  • Quick tips that help: rails notes

Arquives

  • May 2024
  • April 2024
  • February 2023
  • January 2023
  • December 2022
  • June 2021
  • March 2020
  • January 2020
  • July 2019
  • June 2019
  • May 2019
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • January 2018
  • November 2017
  • August 2015
  • August 2014
  • July 2014
  • August 2007

Categories

  • AI
  • articles
  • cfp
  • firebase
  • gems
  • git
  • opinion
  • presentations
  • projects
  • rails6
  • ruby
  • Sem categoria
  • server-api
  • tutorials
  • Uncategorized
© 2025 Rodrigo Urubatan – About Code | Powered by Minimalist Blog WordPress Theme