Pending migration error

I’m not sure if this fits within the spirit of the month, but I thought I’d raise something that’s bugged me since it was first introduced and that is the ActiveRecord::PendingMigrationError exception that is rendered in development mode for pending migrations.

In my workflow, I often find myself generating a new migration but then needing to still navigate around my app while I work out what fields are required. The pending migrations error is a road block that I feel like I keep running into. I am aware of the config.active_record.migration_error setting but I’m often creating new apps for testing gems, bugs, etc and forgetting to set it again.

What I’d love to see, now that we have actionable errors, is an action alongside the existing ‘Run pending migrations’, that would allow me to ignore the exception for that migration for the duration of the session.


2 posts were merged into an existing topic: Pending Migration Error usability concerns