templates/default/lib/db.rb in rails-maker-0.1.7 vs templates/default/lib/db.rb in rails-maker-0.1.9
- old
+ new
@@ -1,25 +1,23 @@
say '## DB >>'
-run 'rm config/database.yml'
-
file 'config/example-databse.yml', <<-END
defaults: &defaults
adapter: postgresql
encoding: unicode
pool: 25
username: username
password: password
host: localhost
-
+
development:
<<: *defaults
- database: dev_#{ARGV[0].underscore}
-
+ database: dev_#{app_name.underscore}
+
test:
<<: *defaults
- database: test_#{ARGV[0].underscore}
-
+ database: test_#{app_name.underscore}
+
production:
<<: *defaults
- database: prod_#{ARGV[0].underscore}
+ database: prod_#{app_name.underscore}
END
\ No newline at end of file