Ruby on Rails
Tuesday, June 12, 2018
p.s The excel template generation is a bit more advanced e.g does not include Rails cols like id, created_at by default
$ th datashift:generate:excel
Usage:
thor datashift:generate:excel -m, --model=MODEL -r, --result=RESULT
Options:
-m, --model=MODEL # The active record model to export
-r, --result=RESULT # Create template of model in supplied file
[--include-rails=INCLUDE_RAILS] # Include Rails auto generated columns like :id, created_at, updated_at
-f, [--force=one two three] # Inform datashift of columns that are still call-able even though they're non model methods
-a, [--associations], [--no-associations] # Include associations. Can be further refined by :with & :exclude
[--expand-associations], [--no-expand-associations] # Expand association data to multiple columns i.e 1 column per attribute
generate a template from an active record model (with optional associations)
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/03c005a5-4d7f-4458-92d6-f00459269635%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment