This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 154141 - Rake task db:creare does not create db if JDBC driver used
Summary: Rake task db:creare does not create db if JDBC driver used
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 15:19 UTC by Mikhail Vaysman
Modified: 2009-02-19 23:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Vaysman 2008-11-29 15:19:49 UTC
Step to reproduce:
- install NetBeans 6.5 Ruby Bundle
- run new project wizard
- choose Ruby > Ruby on Rails Application
- on next dialog click Next button
- choose Specify Database Information Directly
- select Database Adapter - javadb or mysql
- checked checkbox Access Database Using JDBC
- click Finish button
- after creating new project right click on project node
- choose Run/Debug Rake Task menu item from pop-up menu
- select db:create task on dialog and click Run button

After these steps  database does not created.
Comment 1 Erno Mononen 2008-12-01 09:54:28 UTC
Thanks for the report. This a problem in the activerecord-jdbc adapter which the IDE uses; it should get fixed for 
mysql once we bundle the jdbcmysql adapter (issue 138316). As for JavaDB, I'm not sure now what we should do -- there 
is no specific jdbc adapter for it that would support creating databases, and while using it in the embedded mode would 
work, it is not recommended.
Comment 2 Erno Mononen 2008-12-11 12:29:50 UTC
This should be fixed now by the fixes for issue 138316. The IDE now bundles the jdbcmysql and jdbcpostgresql adapters 
and the new Rails project wizard uses those adapters in the generated database.yml. Of course, this works out-of-the-
box only for the bundled JRuby, for external JRuby installations you need to install those gems.