-
Notifications
You must be signed in to change notification settings - Fork 26
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
add igonre table config for show#tables #70
Conversation
I have prepared the settings that you can specify the table name that you do not want to appear in the table list. For example, ``` config.ignore_table_names = %w(SecretTable) ``` The specified table will not appear in the table list.
Hmmm, ActiveRecord class IS NOT identical with tables. I'm wondering the things we want to hide(or ignore) is whether table or AR model. If you use |
My opinion of option name
|
@ar_classes = ActiveRecord::Base.subclasses. | ||
reject {|klass| klass.name == 'ActiveRecord::SchemaMigration' }. | ||
reject {|klass| ignore_table_names.include?(klass.name) }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that abstract_class
model should be filtered too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create new issue. #71
It sounds good. How do you think about this? @takkanm |
me too. thx @joker1007 . |
LGTM 👍 |
add igonre table config for show#tables
I have prepared the settings that you can specify the table name that
you do not want to appear in the table list.
For example,
The specified table will not appear in the table list.