sql - Integration of Oracle Database in a Rails Application -
i have rails application , have sql database. using oracle sql developer manage it. question how integrate these 2 can display database data?
this big subject, major steps can think of are:
- for each table in database want include in rail app, define model class inherits activerecord::base
- if database not respect rails conventions regard naming have provide class methods in each model define primary key column , table name.
- you create associations in models describe joins between tables.
Comments
Post a Comment