toy / dump

Rails app rake and capistrano tasks to create and restore dumps of database and assets
MIT License
89 stars 14 forks source link

Table name confusion #16

Closed sponomarev closed 9 years ago

sponomarev commented 9 years ago

Hi folks!

I mess with annoying problem of regexp search in Dump::Reade#find_entry. If one table name is a substring of another and it is lower in alphanumerical order, for example for users and admin_users, it tries to restore admin_users.dump into users table.

I changed some tests and fix this.

toy commented 9 years ago

Great, thanks (and ouch)! I've also renamed parameter matcher to name. v1.0.8 out in few minutes