feat: add support for polymorphic database relationships

This commit is contained in:
Vikram Rangnekar
2020-06-15 03:06:50 -04:00
parent 7b5548a2c6
commit 06214a3850
15 changed files with 443 additions and 217 deletions

View File

@ -88,6 +88,10 @@ func cmdNew(cmd *cobra.Command, args []string) {
}
})
ifNotExists(path.Join(appConfigPath, "allow.list"), func(p string) error {
return ioutil.WriteFile(p, []byte{}, 0644)
})
// Create app migrations folder and add relevant files
appMigrationsPath := path.Join(appConfigPath, "migrations")

File diff suppressed because one or more lines are too long

View File

@ -134,7 +134,7 @@ database:
type: postgres
host: db
port: 5432
dbname: {{- .AppNameSlug -}}_development
dbname: {{ .AppNameSlug -}}_development
user: postgres
password: postgres

View File

@ -82,7 +82,7 @@ database:
type: postgres
host: db
port: 5432
dbname: {{- .AppNameSlug -}}_production
dbname: {{ .AppNameSlug -}}_production
user: postgres
password: postgres
#pool_size: 10