Solution for: #43: resetting Rails schema_migrations table

maybe there's a better way...

9
From the console...

Dir.open('db/migrate').each do |fname| i = fname.split('_').first.to_i next if i == 0 ActiveRecord::Base.connection.execute("INSERT INTO schema_migrations (version) VALUES(#{i})") end