anlek / mongify

Mongify allows you to map your data from a sql database and into a mongodb document database.
http://github.com/anlek/mongify
MIT License
317 stars 82 forks source link

DEPRECATION WARNING: #tables currently returns both tables and views. #107

Open vlad-ko opened 8 years ago

vlad-ko commented 8 years ago

this happens when i'm trying to generate the new translation

mongify translation database.config

DEPRECATION WARNING: #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead. (called from load at /usr/local/bin/mongify:23)

after that the program exists and can't see any way to proceed further.

mongify check database.config SQL connection works NoSQL connection works

^^^ seems to work fine.

anlek commented 7 years ago

Hey @vlad-ko, I'm sorry about the late response, I've released a new version of Mongify that should fix this issue, please feel free to updated (gem install mongify) and let me know if this still happens.

Andrew

zhivaTosheva commented 7 years ago

Hello,

At the current moment the same issue is still valid. I have installed all the needed gems and my sql and nosql connections work. When i try to run the translation file i see the same error @vlad-ko reported.

Could you please help me with this problem as it is blocking me from further development of my project.

Best Regards, Zhiva Tosheva

anlek commented 7 years ago

Can you share your gem list (gem list) with me? Also, translation file might also help.

Please note I do not have the bandwidth to investigate all issues, however, pinpointing the issue in code or a Pull Request may result in a faster fix/solution

zhivaTosheva commented 7 years ago

Hello,

Thank you a lot for the response. The gem list can be seen on the screenshots :

Here is example table i have in the translation file. All the tables are done as is shown on the video tutorial found in mongify.com :

table "emp_contacts", :embed_in => :employees, :on => :id_emp do column "id_contacts", :key column "id_emp", :integer,:references => :employees column "phone", :string column "address", :string column "email", :string end

Best Regards, Zhiva

anlek commented 7 years ago

Sorry for the late response, try running gem uninstall rails and remove rails 5.0.1 from your system and see if that fixes the issue.

zhivaTosheva commented 7 years ago

Hello,

Thank you a lot ! I tried it and the error is not seen anymore.

Regards, Zhiva

optimus93 commented 7 years ago

yesss ..thanks alot man..