96a86cb630
This reverts commit 8b36095881435e996db16604c52737e144b6bff3, reversing changes made to e05245db878077097d666f7667c0f9057f767583. Railties tests have been failing since this change. The issue is that calling `primary_key` as the model is loaded requires either a connection to the database or a populated schema cache. This becomes an issue when an app loads models that do not have underlying tables, as shown in the failing Railties tests. When eager loading an app using `rails/all`, `ActionMailbox::InboundEmail` will be loaded whether or not `rails g action_mailbox:install` has been run. This means the `primary_key` for `InboundEmail` will not be in the schema cache and a database connection will be required to boot the app. |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |