|
Post by sufiyan07 on Apr 22, 2018 9:10:10 GMT
Hello,
I just started to learn Rhodes framework and I am getting some issue that my table are unable to generate while using FixedSchema model. Below are the steps I've followed 1. Created a project with command - rhodes app storemanager 2. Added a model with command - cd storemanager rhodes model Product name,brand,price,quantity,sku 3. Changed PropertyBag to FixedSchema in product.rb 4. Added a fields in model file product.rb as below
property :name, :string property :brand, :string property :price, :string property :quantity, :string property :sku, :string
5. Deleted rhosimulator folder and run the project with command - rake run:iphone:rhosimuator Now when i checked the localdb from newly generated rhosimulator folder. There is no table generated with name Product Rhodes gem version - 5.5.0.62 Please help
|
|
|
Post by Vladimir Musulainen on Apr 22, 2018 22:30:20 GMT
The Rhodes framework will create tables when the app requests the Product model at the first time, for example when it gets all records from db. Set startPath at rhoconfig.txt as /app/Product/ and restart again. The table Product should be created.
|
|
|
Post by sufiyan07 on May 1, 2018 12:56:44 GMT
|
|
|
Post by Vladimir Musulainen on May 1, 2018 20:01:42 GMT
Hi, Could you attach your app?
Vladimir Musulainen Tau-Technologies
|
|
|
Post by Super Admin on May 2, 2018 18:40:00 GMT
As I understand you work at C2LBIZ. C2BIZ already has paid support package from Tau. So you should file tickets via our Zendesk support portal.
Regards, Konstantin
|
|
|
Post by sufiyan07 on May 5, 2018 22:19:38 GMT
|
|
|
Post by Vladimir Musulainen on May 6, 2018 22:47:27 GMT
Hi sufiyan, I had run your app and I didn't face any issues. The app do worked fine and I saw the table Product in DB. If you continue to have problems, contact the paid support from Tau, as recommended by Konstantin Rybas.
|
|