so weird issue i've run into, running db:migrate through cap in one of our environments takes an especially long time regardless of whether there any migrations to run. Jumping on the box locally and running it seems to run in a reasonable amount of time
so weird question, is there a way to write a change_table block that will add foreign keys to multiple columns in a table? trying to be able to do this all in one alter table statement
anybody have some experience with the AASM gem? I'm trying to redefine a state machine in a child class that has a state machine defined in the parent. They have similiar events and states but with some differences, and they need to share the same column.
anybody here familiar with the aasm gem? I have a subclass that inherits from a parent class with a defined state machine, i'd like to to redefined that state machine on the subclass
so i have a seemingly strange issue that i can't nail down. We have a RoR app that in production will currently throw errors related to variables being nil that should not be. They seem to be one offs for the most part, but they do show up in airbrake all over the place, even in situations where it seems like it would be impossible for a variable to be nil
for instance, i'm building a hash that is to be used for an elasticsearch query. There are two variables, begin_date and end_date that are ruby dates
but one of the filters in the middle causes an elasticsearch error because begin_date and end_date were nil and caused a malformed query, even though they are properly set before and after that error in the same query