22
Root
5y

Rails console:
> `ModelOne.joins("ModelTwo")`
# => ActiveRecord::StatementInvalid (Mysql2::Error: Unknown table 'database_name.model_ones')

MariaDB:
> `select count(*) from database_name.model_ones`
# => 13274641

It's right there, ffs

Comments
  • 1
    Same database user account? Could be priv fuckery.
  • 2
    @AlgoRythm No, just Rails being stupid. Somehow. I have no idea how to trick the DB into saying one of its tables doesn't exist (and then immediately pull data from it because that happened, too).

    /shrug
  • 1
    @Root have you tried killing spring? I have had some problems with its caching messing up things all of the time.
  • 1
    @fuckwit I didn't. I just wrote the query a different way.
Add Comment