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?

Leave a Reply Cancel reply

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

Recent posts

  • I see Dead Jobs everywhere (sidekiq DeadSet)
  • Quick tips that help: rails notes
  • Ruby 3.2.0 released with WASI, YJIT, RegExp improvements, …
  • Rubyconf Thailand quick summary and slides
  • Testing download contents with Cucumber+Capybara and chromedriver

Comments

  1. When Kubernetes is not the right choice? | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – first pod
  2. When Kubernetes is not the right choice? | Rodrigo Urubatan - About Code on How to use docker to have an uniform development environment for your rails project
  3. Rails from "zero" to kubernetes โ€“ ingress reverse proxy | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – a service to access your pod
  4. Rails from "zero" to kubernetes โ€“ horizontal autoscaling | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – a service to access your pod
  5. Jeronimo on 6 Lessons From CrossFit That will help your developer career (Or any other career in the matter of fact)

Arquives

  • 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

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