Sha256: 3943e5582344a816d8138820d307f9caece76374b14ba09359ab3ea0b4e82703
Contents?: true
Size: 1.08 KB
Versions: 22
Compression:
Stored size: 1.08 KB
Contents
# Sequel Database Configuration <% if @database == "sqlite" %> development: "sqlite://db/development.sqlite3" test: "sqlite://db/test.sqlite3" production: "sqlite://db/production.sqlite3" <% elsif @database == "postgresql" || @database == 'pg' %> development: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_development" test: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_test" production: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_production" <% elsif @database == "mysql" %> development: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_development" test: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_test" production: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_production" <% elsif @database == "mongo" || @database == "mongodb" %> development: host: localhost port: 27017 database: <%= @name %>_development username: password: test: host: localhost port: 27017 database: <%= @name %>_test username: password: production: host: localhost port: 27017 database: <%= @name %>_production username: password: <% end %>
Version data entries
22 entries across 22 versions & 1 rubygems