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

can't exclude tables #9

Open
ruckus-matte opened this issue Dec 18, 2009 · 3 comments
Open

can't exclude tables #9

ruckus-matte opened this issue Dec 18, 2009 · 3 comments
Labels

Comments

@ruckus-matte
Copy link

I am using the ActiveSalesforce gem to connect one of my models to Salesforce and I'd love to be able to exclude that model from the search. It'd be great to be able to say something like either of the following

rake db:show_me_ar_find_indexes exclude="model1,model2"
rake db:show_me_ar_find_indexes only="model1,model2"

What I'm getting now is an exception. A "Mysql::Error: Table 'name' doesn't exist" error to be precise

@eladmeidar
Copy link
Owner

That's a good idea, but is there any chance you can paste the content of the model in question, i still want to see what caused the exception

@ruckus-matte
Copy link
Author

here ya go. the model is a severly cutdown version showing just the connection information. nothing else is really applicable, imho. just validations, custom columns, etc.

http://gist.github.com/259800

@eladmeidar
Copy link
Owner

oh i see, you are connecting to another db.... and i don't take that into considiration in the plugin.
Since there are too many ways to direct a model to use another connection, i assume that your initial suggestion of adding an exclusion parameter maybe the smartest one.

and a better exception handling :)

thanks, expect that change in the next release.

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

1 participant