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
Problem with database link #140
Comments
Why has nothing been done on this? |
Maybe submit a pull request? |
How about adding a synonym to the table over the db link. Based on unit tests , I think it should work. before(:each) do
class ::TestPost < ActiveRecord::Base
self.table_name = "synonym_to_posts"
end
end it "should create synonym to table over database link" do
db_link = @db_link
schema_define do
add_synonym :synonym_to_posts, "test_posts@#{db_link}", :force => true
add_synonym :synonym_to_posts_seq, "test_posts_seq@#{db_link}", :force => true
end
lambda do
TestPost.create(:title => "test")
end.should_not raise_error
end |
Closing this issue since no feedback available. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Given a class:
when a simple finder is executed:
the following error is thrown:
Possible resolution
Instead of:
should be written:
The text was updated successfully, but these errors were encountered: