Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added model docstring command #420

Merged
merged 5 commits into from
Oct 7, 2018
Merged

Conversation

josephmancuso
Copy link
Member

@josephmancuso josephmancuso commented Oct 7, 2018

This PR adds a new command:

$ craft model:docstring table_name

for me running

$ craft model:docstring users

generated this:

"""Model Definition (generated with love by Masonite)

id: integer default: None
name: string(255) default: None
email: string(255) default: None
password: string(255) default: None
remember_token: string(255) default: None
created_at: datetime(6) default: CURRENT_TIMESTAMP(6)
updated_at: datetime(6) default: CURRENT_TIMESTAMP(6)
customer_id: string(255) default: None
plan_id: string(255) default: None
is_active: integer default: None
verified_at: datetime default: None
"""

Closes #359

@josephmancuso josephmancuso self-assigned this Oct 7, 2018
@josephmancuso josephmancuso added the next minor Issue scheduled for the next minor release label Oct 7, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 91.497% when pulling c65c48d on add-model-docstring-command into 652b79e on master.

@josephmancuso josephmancuso requested a review from a team October 7, 2018 03:52
@josephmancuso josephmancuso merged commit a1e8001 into master Oct 7, 2018
@josephmancuso josephmancuso deleted the add-model-docstring-command branch October 18, 2018 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next minor Issue scheduled for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants