Giter Club home page Giter Club logo

Comments (3)

frenesim avatar frenesim commented on August 15, 2024

Hi seekdestroyt (terrible nickname btw)
I'm testing on my side and everything seems all right. I took the oportunity to improve the scripts layout for multiple tables.
Can you provide some simple example ? probably one of your tables has some character or word that is interfering in parsing.
This gem was made thinking on rails name convention for tables.
regards

from schema_to_scaffold.

jaffacake avatar jaffacake commented on August 15, 2024

I'm trying to generate scaffolds for over 300 tables, It may well me that the naming conventions are causing issues, it's a database with a lot of legacy tables built over 15 years. Some tables are named like this: ProductSupplier
Some are product_attribute, some are pluralised: products_tariffs

So could the naming conventions cause the script to fail? I've decided to delete a lot of tables and start with a small section, so I may be able to do it table at a time.

ps. you made me change my name, it's not really a nickname as such, just a username I had used a lot.

from schema_to_scaffold.

reiallenramos avatar reiallenramos commented on August 15, 2024

Hi I recently had the same problem. The gem successfully copied the generated scaffold command to my clipboard but when I pasted it to my text editor, the "\n"s were missing like so: "rails generate scaffold Cuprails generate scaffold Noodlesrails generate ...". When I manually put space in between "Cup" and "rails", then run the complete command (355 scaffolds for 355 tables), it just run the very first one, just like in this issue. So to solve this I manually added "&& " in between all the rails scaffold commands such that they would look like this: "rails generate scaffold Cup && rails generate scaffold Noodles && ..." When I run the command again, problem solved!

Note: I wasn't able to take note of the duration that the 355 scaffolds ran, but when I went out for lunch and came back, it was done. So that's maximum 1 hour.

from schema_to_scaffold.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.