开发者

How to compare values from two databases(mysql) in rails-3 application

How to compare under given two fields in rails application

  • Database1 : report_db,

    • table name : detail,
    • field : v_id
  • Database2 : gen_db,

    • table name : vulnerabilities,
    • field : o_id

Database.yml file

  • development:

  • report:

    • adapter: mysql
    • database: report_db
    • host: localhost
    • username: root
    • password: jeet

If any gem is required then plz also mention how to use that gem in rails application


This seems to be a similar question, which gives the option of switching connection dynamically using the establish_connection call and specifying the db connection details.

Its one way to solve your problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜