Closed scarroll32 closed 2 years ago
This issue has been also encountered in the RailsAdmin gem https://github.com/railsadminteam/rails_admin/issues/3157
Creating the tables predictably removes the warnings
❯ rails active_storage:install
Copied migration 20220613211050_create_active_storage_tables.active_storage.rb from active_storage
~/src/erd/rails7.0.3ruby3.0.3 main*
❯ rails db:migrate
== 20220613211050 CreateActiveStorageTables: migrating ========================
-- create_table(:active_storage_blobs, {:id=>:primary_key})
-> 0.0108s
-- create_table(:active_storage_attachments, {:id=>:primary_key})
-> 0.0086s
-- create_table(:active_storage_variant_records, {:id=>:primary_key})
-> 0.0042s
== 20220613211050 CreateActiveStorageTables: migrated (0.0237s) ===============
~/src/erd/rails7.0.3ruby3.0.3 main*
❯ bundle exec erd
Loading application in 'rails7.0.3ruby3.0.3'...
Generating entity-relationship diagram for 12 models...
Warning: Ignoring invalid model ActionMailbox::InboundEmail (table action_mailbox_inbound_emails does not exist)
Warning: Ignoring invalid model ActionText::RichText (table action_text_rich_texts does not exist)
Warning: Ignoring invalid model ActionText::EncryptedRichText (table action_text_rich_texts does not exist)
Diagram saved to 'erd.pdf'.
Warning messages are seen for internal Rails models that have not had tables generated.
Steps to reproduce under Rails 7.0.3 and ruby 3.0.3p157.
Setup a Rails 7 app
Add the rails-erd gem
Run the rake task
Database tables