R
R
Roman Volkov2015-05-21 10:55:17
Ruby on Rails
Roman Volkov, 2015-05-21 10:55:17

How to describe a model for an already existing table in Rails?

Hello. My question is: is it possible to somehow create a model for an already existing table?
For example, I want to write a web interface for viewing calls from the Asterisk database, which is represented by 2 CDR and CELL tables. Can this be done somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2015-05-21
@white_wolf_17

You write model classes, forcibly assign table_name and links to them. Exactly as usual, except for table names

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question