dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
knowtheo1y has quit [Quit: Computer has gone to sleep]
mbj_ has joined #datamapper
mbj has joined #datamapper
Sylvain2 has quit [Quit: Leaving.]
mbj_ has quit [Ping timeout: 256 seconds]
rsim has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
rsim has quit [Ping timeout: 240 seconds]
mbj has joined #datamapper
solnic has quit [Quit: Leaving...]
jeremyevans has joined #datamapper
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 276 seconds]
xybre has quit [Ping timeout: 240 seconds]
kurko__ has joined #datamapper
xybre has joined #datamapper
bobocopy has joined #datamapper
v0n has joined #datamapper
snusnu has quit [Ping timeout: 264 seconds]
snusnu has joined #datamapper
bobocopy has quit [Quit: Leaving.]
v0n has quit [Ping timeout: 264 seconds]
v0n has joined #datamapper
kurko__ has quit [Quit: Computer has gone to sleep.]
knowtheory has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
zombor has quit [Remote host closed the connection]
Sylvain1 has joined #datamapper
snusnu has quit [Quit: Leaving.]
v0n has quit [Ping timeout: 246 seconds]
mbj has quit [Ping timeout: 260 seconds]
mbj has joined #datamapper
rsim has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
rsim has quit [Quit: Leaving.]
rsim has joined #datamapper
solnic has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
mbj has joined #datamapper
mikecmpbll has joined #datamapper
mbj_ has joined #datamapper
solnic has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
solnic has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mbj has quit [Remote host closed the connection]
mbj_ has quit [Remote host closed the connection]
mikecmpbll has joined #datamapper
solnic has quit [Quit: Leaving...]
theCrab has joined #datamapper
mikecmpbll has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #datamapper
snusnu has joined #datamapper
kurko__ has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
zombor has joined #datamapper
rafaelfranca has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
v0n has joined #datamapper
bobocopy has joined #datamapper
theCrab has quit [Ping timeout: 246 seconds]
flori has quit [Read error: Operation timed out]
flori has joined #datamapper
Ortuna has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #datamapper
snusnu has quit [Quit: Leaving.]
<dkubb> !memo snusnu I fixed that one and/or mutation. can you see if it's an issue for you?
<Cinchy> dkubb: Memo recorded for snusnu.
snusnu has joined #datamapper
Sylvain1 has quit [Quit: Leaving.]
kurko__ has quit [Ping timeout: 276 seconds]
kurko__ has joined #datamapper
solnic has joined #datamapper
Sylvain1 has joined #datamapper
mbj has joined #datamapper
mbj_ has joined #datamapper
mbj has quit [Ping timeout: 276 seconds]
mbj_ has quit [Ping timeout: 240 seconds]
mbj has joined #datamapper
endorama has joined #datamapper
<endorama> Hello everyone! I'm searching for a little bit of help using DataMapper and auto_upgrade!
<onewheelskyward> What's up endorama?
<endorama> I'm facing a behaviour I'm not understanding...
<endorama> I'm trying to use DataMapper in a standalone ruby gem
<endorama> I'm doing the database setup using DataMapper.setup(:default, 'sqlite::memory:')
<endorama> Then performing the DataMapper.finalize
<endorama> up to now all is clear and working well
<endorama> Now, I need to create the database, which, if I'm not misunderstanding, could be created using DataMapper.auto_migrate! or DataMapperauto_upgrade!
<endorama> using auto_migrate! wipe the database, which is something I do not need.
<endorama> using auto_upgrade! one time is fine.
<endorama> using it a second time ( so when the tables are present )
<endorama> results in a duplicate column error on the :id propriety of my model
solnic has quit [Quit: Leaving...]
<endorama> if I'm correct auto_upgrade! should only add elements if not already present, not performing an ALTER TABLE on a AutoIncrement Integer
<endorama> this is the irb session demonstrating the problem: http://pastebin.com/peeR1MBt
<onewheelskyward> That's been my experience.
<onewheelskyward> Well, the problem with your irb is that you're calling upgrade twice.
<onewheelskyward> and after finalize.
<onewheelskyward> wait, my mistake. After finalize is fine.
<onewheelskyward> But don't call it twice in the same run of the app.
<onewheelskyward> The flow should be model create, finalize, upgrade, then comes your application code/loop.
<endorama> ok.. my misunderstanding :) Thanks for your help!
<onewheelskyward> You betchya!
<endorama> bye bye everyone :)
endorama has quit [Quit: Sto andando via]
dkubb-ircloud has joined #datamapper
solnic has joined #datamapper
mbj has quit [Quit: leaving]
solnic has quit [Read error: Connection reset by peer]
solnic has joined #datamapper
rsim has quit [*.net *.split]
yeban has quit [*.net *.split]
Frost has quit [*.net *.split]
Frost has joined #datamapper
rsim has joined #datamapper
yeban has joined #datamapper
<onewheelskyward> How do I determine if a model is modified pre-save?
<onewheelskyward> ah, dirty
<onewheelskyward> there it is. A little hidden.
kurko__ has quit [*.net *.split]
rafaelfranca has quit [*.net *.split]
banditron has quit [*.net *.split]
kurko__ has joined #datamapper
rafaelfranca has joined #datamapper
banditron has joined #datamapper
zombor has quit [*.net *.split]
viranch has quit [*.net *.split]
Cinchy has quit [*.net *.split]
lnormous has joined #datamapper
zombor has joined #datamapper
viranch has joined #datamapper
Cinchy has joined #datamapper
mbj has joined #datamapper
rsim has quit [Quit: Leaving.]
mbj has quit [Ping timeout: 264 seconds]
rafaelfranca has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
zombor has quit [Remote host closed the connection]
shingara has quit [Ping timeout: 248 seconds]
PolarFox has quit [Ping timeout: 248 seconds]
PolarFox has joined #datamapper
shingara has joined #datamapper
PolarFox has quit [*.net *.split]
solnic has quit [Quit: Leaving...]
PolarFox has joined #datamapper
dkubb|away has joined #datamapper
dkubb has quit [Read error: Connection reset by peer]
postmodern has joined #datamapper
rsim has joined #datamapper
rsim has quit [Ping timeout: 241 seconds]
zombor has joined #datamapper
v0n has quit [Ping timeout: 276 seconds]
zombor has quit [Remote host closed the connection]
rafaelfranca has joined #datamapper