Comments (3)
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.
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.
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)
- v0.5.3 causes bundle exec rake to break and generates cattr_accessor error HOT 2
- Scaffold fails where tables contain non-English characters. HOT 4
- What about adding relations? HOT 3
- Version lock breaking compatibility HOT 3
- in `require': cannot load such file -- pry (LoadError) HOT 1
- Multiple Tables won't -c correctly in Windows HOT 5
- unexpected token `<'` HOT 3
- Non interactive use HOT 1
- Odd number list for hash HOT 3
- Unable to open file
- undefined method `to_script' for nil:NilClass HOT 1
- undefined method `captures' for nil:NilClass HOT 8
- Bad table names with uuid ids
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schema_to_scaffold.