<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
00:51 glennpratt joined
01:02 glennpratt joined
01:17 <jaequery> is it possible so that one particular model uses a different remote database?
01:18 <jaequery> i'd like all my Log model to hit a db that is entirely on its own, but interesting to know if the associations can still work even in this case?
01:24 <adam12> I believe you can pass a custom database/table into the model construct
01:24 <adam12> class SomeModel < Sequel::Model[OTHER_DB[:some_model]]
01:25 <adam12> Associations won't work. I don't think I've ever seen joining across databases.
01:30 jaequery_ joined
01:53 glennpratt joined
02:06 glennpratt joined
02:17 <jeremyevans> adam12: Most associations will work just fine cross database, except you can't use eager_graph, or many_to_many where join table and associated table are in different databases
02:17 <adam12> I had no idea
02:47 AYGHOR joined
03:02 glennpratt joined
04:25 glennpratt joined
06:17 glennpratt joined
07:45 glennpratt joined
08:09 aidalgol joined
08:31 jaequery joined
10:09 ta_ joined
14:06 Morrolan_ joined
14:08 glennpratt joined
14:10 asio_ joined
14:12 lopex joined
14:15 contradictioned_ joined
16:36 dreinull joined
16:54 jaequery joined
18:18 scratchcat joined
18:45 scratchcat joined
19:06 tercenya joined
19:09 ta_ joined
19:41 glennpratt joined
20:30 scratchcat joined
21:33 glennpratt joined
22:01 tercenya joined
22:06 glennpratt joined
22:11 tercenya joined
22:35 scratchcat left
22:58 glennpratt joined
22:59 glennpratt joined
23:07 glennpratt joined
23:20 glennpratt joined
23:57 glennpratt joined
23:58 glennpratt joined