feat: add support for polymorphic database relationships
This commit is contained in:
@ -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
@ -134,7 +134,7 @@ database:
|
||||
type: postgres
|
||||
host: db
|
||||
port: 5432
|
||||
dbname: {{- .AppNameSlug -}}_development
|
||||
dbname: {{ .AppNameSlug -}}_development
|
||||
user: postgres
|
||||
password: postgres
|
||||
|
||||
|
@ -82,7 +82,7 @@ database:
|
||||
type: postgres
|
||||
host: db
|
||||
port: 5432
|
||||
dbname: {{- .AppNameSlug -}}_production
|
||||
dbname: {{ .AppNameSlug -}}_production
|
||||
user: postgres
|
||||
password: postgres
|
||||
#pool_size: 10
|
||||
|
Reference in New Issue
Block a user