-
Notifications
You must be signed in to change notification settings - Fork 86
[STRIP FILE UPLOAD]: model + test #574
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
Conversation
12c9d5d to
bb49b22
Compare
|
|
||
| @invalid_attrs %{} | ||
|
|
||
| describe "create_changeset/2" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would change to create_identity_document_changeset/2
|
@snewcomer I think no |
web/models/stripe_file_upload.ex
Outdated
| field :purpose, :string | ||
| field :url, :string | ||
| field :type, :string | ||
| field :id_from_stripe, :string, null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would reorder by alpha here (and again down in the cast
bb49b22 to
4abb92b
Compare
| add :size, :integer | ||
| add :type, :string | ||
| add :url, :string | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I see the stripe_connect_account in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it look like this? add :stripe_connect_account_id, references(:stripe_connect_accounts) or add :stripe_connect_account_id, references(:stripe_connect_accounts, on_delete: nothing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snewcomer I think the second one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshsmith ah sry. on_delete is defaulted to nothing.
4abb92b to
782708e
Compare
782708e to
ae132db
Compare
|
🙌 great work @snewcomer! |
What's in this PR?
StripeFileUpload model
Do we need a create_changeset function as well?