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

Inflections for StructName -> table_name #155

Open
erizocosmico opened this issue May 9, 2017 · 2 comments
Open

Inflections for StructName -> table_name #155

erizocosmico opened this issue May 9, 2017 · 2 comments

Comments

@erizocosmico
Copy link
Contributor

erizocosmico commented May 9, 2017

Use https://github.com/jinzhu/inflection to convert from type Pet struct to pets as the table name.

Include a special migration generation to be able to upgrade from one to the other painlessly.

It is a breaking change, so it will have to wait for v2.

@Serabe
Copy link
Contributor

Serabe commented May 9, 2017

Also, there would need to be a migration generation to ease the pain for this.

@erizocosmico
Copy link
Contributor Author

Fair point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants