Re: [Rails-core] In the need for separating data migration from schema migration

2015-04-15 Thread Pranas Kiziela
Jason, how do you avoid the same data migration problems in your gem? If models you reference in a migration change, the migration would break, wouldn't it? Augustin, I find it best to not reference any app models but rather define new classes for the models I need inside the migration. On Tue,

Re: [Rails-core] STEP argument for rake db:migrate

2015-03-30 Thread Pranas Kiziela
You can run migrations one at a time by passing VERSION env variable (see http://guides.rubyonrails.org/active_record_migrations.html#running-migrations ) I too see inconsistency here. I wish all operations supported both STEP and VERSION. On Sun, Mar 29, 2015 at 6:23 PM, Michael Mahemoff

Re: [Rails-core] Rake db:migrate with relativeness

2014-02-13 Thread Pranas Kiziela
I think STEP parameter is what you're looking for: http://guides.rubyonrails.org/migrations.html#rolling-back On Thu, Feb 13, 2014 at 3:36 PM, HariHaraSudhan KM km.hariharasud...@gmail.com wrote: Hi people, I found it a little hard to migrate up,down,redo with version numbers, i

[Rails-core] Re: ActiveRecord::Persistence.increment! requires a row lock to ensure isolated updates

2013-01-22 Thread Pranas
It sounds like an interesting idea but I have some concerns. How about value stored in AR instance? You wouldn't know what value was saved to database unless you reload the record. Pranas On Tuesday, January 22, 2013 8:15:16 AM UTC-8, ChuckE wrote: I understand what you mena. However, how