bosko / rmre

Rails 3 models reverse engineering
MIT License
126 stars 36 forks source link

No output from RMRE #9

Closed joshk6 closed 12 years ago

joshk6 commented 12 years ago

(Windows 7, Rails 3,

I've installed RMRE and it seems to run, it says its "generating models", but there are no files actually created from my database (SQL Server Express).

jkramer@SEA-69000XXXX ~/tests/test9/app/models $ rmre -a sqlserver -m odbc -n mydsn -d testdb -u sa -p XXXXXXXX Generating models...

jkramer@SEA-69000XXXX ~/tests/test9/app/models $ ls

(returns nothing)

The directory is empty, but there are 12 tables in this DB, all with autonumber primary keys whose name is 'id'. I searched my drive for .rb files for my tables but I don't see anything.

The DSN works fine.

Is RMRE fussy about table names? Mine are mixed case (e.g. dbo.Contracts)

Any ideas?

installed gems below:

$ bundle Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.3) Using activemodel (3.2.8) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.3) Using actionpack (3.2.8) Using mime-types (1.19) Using polyglot (0.3.3) Using treetop (1.4.11) Using mail (2.4.4) Using actionmailer (3.2.8) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.8) Using activerecord-sqlserver-adapter (3.2.9) Using activeresource (3.2.8) Using coffee-script-source (1.3.3) Using execjs (1.4.0) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using rdoc (3.9.4) Using thor (0.16.0) Using railties (3.2.8) Using coffee-rails (3.2.2) Using jquery-rails (2.1.3) Using bundler (1.2.1) Using rails (3.2.8) Using ruby-odbc (0.99994) Using sass (3.2.1) Using sass-rails (3.2.5) Using win32ole-pp (1.2.0) Using sql_server (0.1.1) Using uglifier (1.3.0)

bosko commented 12 years ago

If output directory is not given rmre creates files in system temp folder. If you want to change that just add:

-o <path_to_some_existing_folder>

and model files will be created there.