|AnalogHole||if I perform some database updates in an after_create on other models, will those updates be rolled back if the after_create returns false?|
|technodolt||newcastle brown ale rules|
|AnalogHole||Not sure if that is clear or not.|
|technodolt||the database updates will be rolled back if they would have been rolled back anyway|
i mean... just returning false from after_create won't make them roll back
|AnalogHole||After an object is created, I used the after_create call back to create some associated objects. But I want the whole thing to roll back if anything fails n the after_create|
Oh, i thought after_create returning false would trigger a roll back.
|technodolt||after_create isn't called until the initial transaction is completed|
ie. your model has already been saved to the DB
the best you can do is try to create the associations, and if THOSE fail, then have the model destroy itself
|carterparks||technodolt: i second the newcastle comment|
|technodolt||i'm not 1000% positive about that|
|AnalogHole||Hmm, that is no fun..|
|technodolt||but i'm 99%|
|funbags||Anyone here in the NY Area (NYC / Longisland) looking for some work? (ecommerce)|
|technodolt||you going to be around a little bit, analog?|
i'll test it out for you?
|AnalogHole||Sure, I'll be here.|
I know the create is wrapped in a transaction already...
|technodolt||meh, don't have mysql installed... it'll take me about 5 minutes or so to get everything set up :)|
i have _got_ to wipe this PC and start over soon... I think I might dual-boot windows and ubuntu, if i can find linux drivers for my pcmcia wireless
|technodolt||what is a netsplit?|
|funbags||netsplit = a server took a dump and took 1/2 the users with it|
|AnalogHole||technodolt: it definitly rolls back if there is an exception. But I don't want to have to catch an exception. Let me see if adding to errors does it.|
oh, and btw analog
are you on edge or stable?
|RadarListener||technodolt, in more comprehensive terms, this irc "server" is actually a network of "servers" all linked together. Ocassionally one of them goes down, taking users connected to it with it.|
|mycpuisneuralnet||can someone explain why this migration is throwing an error saying 'mysql cannot rename'|
im not even renaming anything -- http://pastie.caboo.se/45981
|RadarListener||technodolt, the command "/links" should give you a list of all the freenode servers.|
|RadarListener||mycpuisneuralnet, it's the migration that's doing it, not your code.|
it's trying to create another table, or at least rename the current one to something else, do you have permissions to do that?
|AnalogHole||technodolt: I guess I can throw an exception and add to errors|