50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# File 'lib/framework/generators/application_generator.rb', line 50
def create_database_config
db_name = name.underscore
create_file 'config/database.yml' do
" development: &common\n adapter: postgresql\n username:\n password:\n database: \#{db_name}_development\n min_messages: WARNING\n reconnect: true\n pool: 5\n encoding: unicode\n host: localhost\n\n test:\n <<: *common\n database: \#{db_name}_test\n\n production:\n <<: *common\n database: \#{db_name}_production\n CONFIG\n end\nend\n".strip_heredoc
|