how to truncate table in rails 夜鸣猪 · 2013-01-29 04:14 · 编程语言 · Markdown ActiveRecord::Base.connection.execute("TRUNCATE TABLE #{table_name}")