rails/activerecord/lib
Hartley McGuire 96a86cb630
Revert "Merge pull request #48527 from ghiculescu/active-record-enum-id"
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.
2023-06-20 17:44:36 -04:00
..
active_record Revert "Merge pull request #48527 from ghiculescu/active-record-enum-id" 2023-06-20 17:44:36 -04:00
arel Adds Arel::Nodes::Cte for use in WITH expressions 2023-05-24 19:19:21 -04:00
rails/generators Simplify the implementation to register the correct source_path for the migration template 2023-05-24 22:54:12 +00:00
active_record.rb Implement ActiveRecord.disconnect_all! to close all connections 2023-05-19 13:19:31 +02:00
arel.rb Fix a code block in the Arel documentation 2023-05-06 18:57:12 -07:00