Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignoring database config files

  • Loading branch information...
commit 539c9404137830488c1768771c7c453950910770 1 parent 095b2d1
@jmrepetti authored
Showing with 2 additions and 23 deletions.
  1. +2 −1  .gitignore
  2. +0 −22 config/database.rb
View
3  .gitignore
@@ -5,4 +5,5 @@ bin/*
vendor/gems/*
!vendor/gems/cache/
.sass-cache/*
-tmp/snippets.js
+tmp/snippets.js
+config/database.rb
View
22 config/database.rb
@@ -1,22 +0,0 @@
-case Padrino.env
- when :development then db_name = 'photonotes_development'
- when :production then db_name = 'photonotes_production'
- when :test then db_name = 'photonotes_test'
-end
-
-CouchRest::Model::Base.configure do |conf|
- conf.model_type_key = 'type' # compatibility with CouchModel 1.1
- conf.database = CouchRest.database!(db_name)
- # Only with CouchModel 1.1
- # conf.environment = Padrino.env
- # conf.connection = {
- # :protocol => 'http',
- # :host => 'localhost',
- # :port => '5984',
- # :prefix => 'padrino',
- # :suffix => nil,
- # :join => '_',
- # :username => nil,
- # :password => nil
- # }
-end
Please sign in to comment.
Something went wrong with that request. Please try again.