Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non referenced table with important number of rows #169

Open
adriens opened this issue Jan 9, 2019 · 4 comments
Open

Non referenced table with important number of rows #169

adriens opened this issue Jan 9, 2019 · 4 comments
Labels

Comments

@adriens
Copy link
Collaborator

adriens commented Jan 9, 2019

Detect tables that are not referenced in the model and for which the number of rows exceeds a given/parametrized (I propose 0 by default) threeshold.

@adriens adriens added the lint label Jan 9, 2019
@bheemreddy181-zz
Copy link

Do you have any approach for this? How can we know whether a table isn't referenced in the rails models from PSQL Implementation - this will be little difficult I guess? I would say we should have some gem which kind of has the privilege to query model attributes - something like that. I would like to hear if you already have something in mind.

@adriens
Copy link
Collaborator Author

adriens commented Mar 4, 2019

Schemacrawler totally relies on the database data model. If ou have relations in you rails project that uou do not have in your database :

1 - It's bad
2- Fixt it ASAP 😆

I don't know a lot about rails. All I can tell you is that if you have the privielege to read (just read) a table, you will be able to get its metadatas : does it answer your question ❔

@bheemreddy181-zz
Copy link

I was confused with the lint now , Can you please elaborate a bit please

@bheemreddy181-zz
Copy link

What do you mean by Model here ? @adriens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants