I have noticed some odd behavior from the check_pending_migrations code while watching the terminal window. The check_pending_migrations code results in this query being run 41 times when I start my application:
(1) (0.000086) SELECT version FROM schema_info
I have 39 tables including schema_info and 43 migrations.
This also happens right before the 41 queries above:
(0) (0.000000) Mysql::Error: Table ‘schema_info’ already exists: CREATE TABLE
schema_info (version int(11))
Does anyone have any ideas about what might be causing this and how to fix it? I like the code, but I am not going to use it if it adds 41 queries to each startup.