Created
August 30, 2016 13:36
-
-
Save anggiaj/9d5a949d6bbcd48595c6b0db5401e24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.connection.tables.collect{|table_name| ActiveRecord::Base.connection.execute("TRUNCATE #{table_name} RESTART IDENTITY")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment