In my migration I have:
def up
MyModel.destroy_all
MyModel.create!({:id=>1,:name=>'foo'})
MyModel.create!({:id=>2,:name=>'fooBar'})
MyModel.create!({:id=>3,:name=>'fooNull'})
end
because I need to override data that was already on my_models table
But Even though I'm specifying the id
on MySQL it continues the numbering from the position it already was.
I need to rest the counter on the auto increment for id
to have only this 3 new records with that id values trough Active Record migration on my Ruby on Rails application.