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

Update fizz.md create_table details #313

Closed
wants to merge 5 commits into from

Conversation

JosiahWitt
Copy link

Update fizz.md to match the recent changes to the create_table method from gobuffalo/fizz#15; auto-incrementing primary keys are no longer automatically created by the create_table method.

Update fizz.md to match the recent changes to the create_table method from gobuffalo/fizz#15.
@JosiahWitt JosiahWitt requested a review from a team August 29, 2018 19:52
Copy link
Member

@kteb kteb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I just have a small doubt on the implication for buffalo if we don't put an id. So maybe having a word about it could be nice, just waiting Stan to confirm my idea.

@@ -35,7 +37,7 @@ create_table("users") {
}
```

It will also generate two `timestamp` columns; `created_at` and `updated_at`.
Note that a primary key is not required. The `create_table` function will generate two `timestamp` columns; `created_at` and `updated_at`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not needed for fizz, but I think it's needed for buffalo (so when using buffalo it'll be created, if so it might be good to precise it). Am I wrong @stanislas-m ?

Copy link
Member

@stanislas-m stanislas-m Sep 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pop will still generate an ID, even if fizz doesn't require it. Fizz had its rule loosen because it can be used outside Pop scope, and requiring an ID is a Pop rule.

@paganotoni paganotoni closed this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants