Permalink
Browse files

Moved development database into DB folder

  • Loading branch information...
1 parent d583968 commit e77b728961481b7fc8a33abd2c59308ef166b61f @mutewinter committed Jan 5, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 environment.rb
View
@@ -6,4 +6,5 @@
/development.db
/test/
-.sass-cache
+.sass-cache
+db/
View
@@ -16,6 +16,6 @@
# load models
Dir.glob("#{File.dirname(__FILE__)}/lib/models/*.rb") { |lib| require lib }
- DataMapper.setup(:default, (ENV["SHOWBOT_DATABASE_URL"] || "sqlite3:///#{File.expand_path(File.dirname(__FILE__))}/#{Sinatra::Base.environment}.db"))
+ DataMapper.setup(:default, (ENV["SHOWBOT_DATABASE_URL"] || "sqlite3:///#{File.expand_path(File.dirname(__FILE__))}/db/#{Sinatra::Base.environment}.db"))
DataMapper.finalize
end

0 comments on commit e77b728

Please sign in to comment.