ActiveRecord::Base.connection.execute("TRUNCATE TABLE #{table_name}")
rails里使用truncate table
最新推荐文章于 2024-09-13 16:32:53 发布
ActiveRecord::Base.connection.execute("TRUNCATE TABLE #{table_name}")