I have the following SQL which I need to do
CREATE TABLE cars_users2 AS SELECT DISTINCT * FROM cars_users;
DROP TABLE cars_users;
ALTER TABLE cars_users2 RENAME TO cars_users;
since I cannot use heroku dataclips to drop a table, I cannot use dataclips.
So I guess I need to do this in a migration.
How do I write this sql as a migration?