Please log into your user account or create a new one

Solution for: #43: resetting Rails schema_migrations table

maybe there's a better way...

4
From the console...

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