More jruby gem for database fixes #1809

Merged
merged 4 commits into from Jun 21, 2011

7 participants

@nicksieger

These changes update the JRuby/JDBC database support to be a little friendlier.

  • You will be able to use rails new app with no arguments and get a proper JRuby/sqlite3-based Rails app.
  • rails new app -d sqlite3 and rails new app -d jdbcsqlite3 will do the same thing.
  • Add a rails new app -d jdbc template for all other databases.
@tenderlove tenderlove merged commit 15f09c5 into rails:3-1-stable Jun 21, 2011
@drnic

This is fantastic.

@guilleiguaran
Ruby on Rails member

🔥

@drnic

I did not know I could do 🔥!

@cmeiklejohn

That's amazing.

@willchinelato

Great!

@arunagw
Ruby on Rails member

Tests added here :-)

#1813

@arunagw arunagw commented on the diff Jun 22, 2011
...rs/rails/app/templates/config/databases/jdbcmysql.yml
@@ -9,7 +9,7 @@
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
- adapter: jdbcmysql
+ adapter: mysql
@arunagw
Ruby on Rails member
arunagw added a note Jun 22, 2011

I have modified database.rake before to work db:create and other database operations with "jdbcmysql" and other jdbc* stuff. That time i was not sure that only "mysql" will also work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment