Created
April 6, 2013 14:39
-
-
Save dcvezzani/5326307 to your computer and use it in GitHub Desktop.
[via Rails console] Truncate selected tables using ActiveRecord.
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
%w[bcms_my401k_articles bcms_my401k_article_versions].each do |t| | |
ActiveRecord::Base.connection.execute("truncate table #{t}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment