XML Schema (XSD) for Rails ActiveRecord Mapping?

I am looking for a way to convert an XML schema definition file to an ActiveRecord modeling database. Does anyone know a tool that does this?

So far, the best way is to find the XSD load in RDBMS, such as postgres or mysql, and then connect the rails to do rake db: schema: dump. This, however, leaves me only with a database without rails. Models.

What is the best way to import / load this xsd based database in rails?

+3
source share
1 answer

Have you tried creating a gem magic_model_generator to create a model from db?

: http://magicmodels.rubyforge.org/magic_model_generator/

, XSD ? , -, : XSD? XSD SQL

: Xml Spy (30 , , ug) xsd mysql db, magic_model_generator ActiveRecord. , , , db.

+1

Source: https://habr.com/ru/post/1734152/


All Articles