-
Notifications
You must be signed in to change notification settings - Fork 73
DataObjects error when using two repositories #20
Comments
I'm also observing this issue (see below error). The same code worked under dm 1.0.2. Here are my gem list: *** LOCAL GEMS *** addressable (2.2.8) /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:114:in |
Same problem here as well. Anybody have an idea what could be the cause? |
You are probably creating two in memory connection which isn't supported. You probably need to use a full path in the URL, if Sqlite can't open the file specified, it will fallback to an in memory connection. Does this work properly if you use a full path in the url to a file for the database? |
At least it does not work for me (with dm-core 1.2.1). The changes to use full path look like:
|
It works if I auto_migrate the model in the repository block like this:
|
thanks @fwolfst works for me! |
I have this simple code using two sqlite stores:
Default repository works, but Lite repository throws this error:
Is this a bug?
I'm using recently updated gems:
and my ruby version:
The text was updated successfully, but these errors were encountered: