Closed ppworks closed 9 years ago
@ppworks Thank you! Just for curious, which RDBMS are you using?
I'm using MySQL.
Thanks for merging! When will it be bumped version on rubygems?
Wait, I merged this because it's not a bad change, but asked this question because I'm still not sure if this regexp is perfect. One actual example that I'm aware now is MS SQLServer. SQLServer accepts more than one dots in an object notation https://msdn.microsoft.com/en-us/library/ms177563.aspx Please give me some more time to think.
Oh! I didn't know that... Ok, I'll make other pull request!
When the table name of an ActiveRecord class is set explicitly, and if the table name contains the database name, database_rewinder fails to clear that table.
This PR fix the issue.
If I created user model like this.
INSERT SQL is following.
INSERT SQL regular expression matches 'my_database'
So, I changes INSERT SQL regular expression like this.