Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 237 Bytes
#!/usr/bin/ruby
ENV['RAILS_ENV'] ||= 'test'
require 'config/environment'
connection = ActiveRecord::Base.connection
(connection.tables - %w(schema_migrations)).each do |table_name|
connection.execute("DELETE FROM #{table_name}")
end
Something went wrong with that request. Please try again.