lib/padrino-gen/generators/components/orms/sequel.rb in padrino-gen-0.12.8.1 vs lib/padrino-gen/generators/components/orms/sequel.rb in padrino-gen-0.12.9

- old
+ new

@@ -30,12 +30,12 @@ sequel.gsub!(/!DB_PRODUCTION!/, "\"postgres://localhost/#{db}_production\"") sequel.gsub!(/!DB_TEST!/,"\"postgres://localhost/#{db}_test\"") require_dependencies 'pg' 'pg' else - sequel.gsub!(/!DB_DEVELOPMENT!/,"\"sqlite:///\" + Padrino.root('db', \"#{db}_development.db\")") - sequel.gsub!(/!DB_PRODUCTION!/,"\"sqlite:///\" + Padrino.root('db', \"#{db}_production.db\")") - sequel.gsub!(/!DB_TEST!/,"\"sqlite:///\" + Padrino.root('db', \"#{db}_test.db\")") + sequel.gsub!(/!DB_DEVELOPMENT!/,"\"sqlite://db/#{db}_development.db\"") + sequel.gsub!(/!DB_PRODUCTION!/, "\"sqlite://db/#{db}_production.db\"") + sequel.gsub!(/!DB_TEST!/, "\"sqlite://db/#{db}_test.db\"") require_dependencies 'sqlite3' 'sqlite3' end create_file("config/database.rb", sequel) empty_directory('db/migrate')