Created
August 21, 2012 18:31
-
-
Save jodell/3418189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gawk 'match($0, /CREATE (TABLE|SEQUENCE|UNIQUE INDEX) (\w+)/, a) { print a[2] }' db/structure.sql > structures.out |
heroku pg:psql; \o prod-structures.out; select relname from pg_stat_user_tables WHERE schemaname='public'; \o
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ad_server_credentials
ad_server_ids
advertisers
invites
negotiations_websites
phone_numbers
placement_snapshots
proposal_snapshots
proposal_snapshots_websites
proposals_websites
sync_messages
sync_messages_users