rails/rails — comment on commit 8aa7b8695dd90989de699e050b61d755e3a61b19
File:  line 0
By sobrinho:

Also, each database has its way to check if a table exists.

For PostgreSQL, could be more faster using this:

``` sql
SELECT COUNT(*) FROM "pg_tables" WHERE "pg_tables"."tablename" = 'users';
```

I didn't checked if it's more faster because I don't have a database with more than 100 tables ;)