initial rails-dev-box vagrant implementation

This commit is contained in:
noi narisak
2014-09-03 16:39:28 -05:00
parent 30a48aca8d
commit 0f15901151
5 changed files with 118 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
/*
* Updates the default 'template1' database into UTF-8 instead of SQL_ASCII.
*/
UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';
DROP DATABASE template1;
CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';
\c template1
VACUUM FREEZE;
UPDATE pg_database SET datallowconn = FALSE WHERE datname = 'template1';