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

Allow default for belongs_to fields #22

Closed
sclee15 opened this issue Dec 6, 2018 · 1 comment · Fixed by #444
Closed

Allow default for belongs_to fields #22

sclee15 opened this issue Dec 6, 2018 · 1 comment · Fixed by #444
Milestone

Comments

@sclee15
Copy link

sclee15 commented Dec 6, 2018

As a user,
I am altering the table to add a belongs to some other table which is not nullable.
but when i do this.
add_belongs_to product : Product, on_delete: :cascade, default: "1"
compiler complaints that there is no such default

I would like to pass fill_existing_with parameter. what should i do?

@paulcsmith
Copy link
Member

paulcsmith commented Dec 6, 2018 via email

@paulcsmith paulcsmith transferred this issue from luckyframework/lucky_record Feb 2, 2019
@paulcsmith paulcsmith added this to the Avram next (stretch goals) milestone Jun 13, 2019
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 a pull request may close this issue.

2 participants