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

:if-not-exists flag for schema(...).create? #482

Open
kawaii opened this issue May 7, 2021 · 1 comment
Open

:if-not-exists flag for schema(...).create? #482

kawaii opened this issue May 7, 2021 · 1 comment

Comments

@kawaii
Copy link

kawaii commented May 7, 2021

schema(Account, Transaction).create;

Is there some syntax to apply the :if-not-exists flag when using this way of creating my tables?

@FCO
Copy link
Owner

FCO commented May 7, 2021

I'm planing a

schema(...).update;

That will update your db's actual schema for your model defined schema.

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

No branches or pull requests

2 participants