rails里使用truncate table 夜鸣猪 · 2012-09-07 02:04 · Ruby On Rails · 编程语言 · Markdown ActiveRecord::Base.connection.execute("TRUNCATE TABLE #{table_name}")