Skip to content

Utility method to remove dead ActiveRecord views #11

@jasoncodes

Description

@jasoncodes

Now that we have class names in the metadata table, we could try to load each constant and drop the view if it fails.

What should we do if another view depends on the view about to be dropped? We should not cascade as that would cause the metadata table to be out of sync. Sorting and dropping the leaves first should work fine though.

We should be able to run this from the ActiveSupport.on_load :active_record railtie to clean up automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions