News for hackers. Stuff that matters.
Re:Reversible Migrations in Rails 3.1 by snprbob86 on Saturday May 07, 2011 @05:19PM (#2524588)
He's making the same mistake I once made: Trying to use his models from the migrations.

I'd really like to see Rails raise a deprecation warning if a model gets dynamically loaded by a migration....

Re:Reversible Migrations in Rails 3.1 by jarin on Saturday May 07, 2011 @05:40PM (#2524646)
Every Rails developer makes that mistake once (well, hopefully not more than once). What I'd really like to see next is a way to version seeds.rb.
Re:Reversible Migrations in Rails 3.1 by james2m on Wednesday May 11, 2011 @03:25AM (#2535513)
@Jarin I've been thinking about versioning seeds or at least being able to alter / update in place seeds. Did you have any thoughts on how you would like the versioning to work?
Re:Reversible Migrations in Rails 3.1 by foca on Saturday May 07, 2011 @07:46PM (#2524886)
git?
Re:Reversible Migrations in Rails 3.1 by jarin on Saturday May 07, 2011 @07:52PM (#2524899)
seeds.rb isn't intended to be run more than once on a particular database instance. Running it more than once results in duplicate entries, unless you're explicitly checking for dupes (not always possible).

It looks like seedbank is fairly close to what I want though, as it lets you maintain multiple sets of seeds: https://github.com/james2m/seedbank