$ rails c
> ModelName.delete_all
> ActiveRecord::Base.connection.execute("DELETE from sqlite_sequence where name = 'table_name'")
Last active
August 29, 2015 14:21
-
-
Save skplunkerin/a9b316ba294d75ea0ddd to your computer and use it in GitHub Desktop.
rails sqlite truncate single table
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment