Created
November 27, 2018 23:52
-
-
Save glassresistor/ecfbb08b5b26c6099c7bed4cee62c888 to your computer and use it in GitHub Desktop.
Revisions
-
glassresistor created this gist
Nov 27, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ create user django with password 'password'; create schema django authorization django; create user rails with password 'password'; create schema rails authorization rails; create extension hstore; create extension pg_trgm schema rails; grant USAGE on SCHEMA rails to django; ALTER DEFAULT PRIVILEGES IN SCHEMA rails revoke all on tables from django; ALTER DEFAULT PRIVILEGES IN SCHEMA rails grant select on tables to django; ALTER DEFAULT PRIVILEGES IN SCHEMA rails revoke all on sequences from django; ALTER DEFAULT PRIVILEGES IN SCHEMA rails grant select on sequences to django; # ALTER DEFAULT PRIVILEGES IN SCHEMA django revoke all on tables from rails; # ALTER DEFAULT PRIVILEGES IN SCHEMA django grant select on tables to rails;