Skip to content

Conversation

@snewcomer
Copy link
Contributor

What's in this PR?

StripeFileUpload model

Do we need a create_changeset function as well?


@invalid_attrs %{}

describe "create_changeset/2" do
Copy link
Contributor

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

@joshsmith
Copy link
Contributor

@snewcomer I think no create_changeset/2 for now since we want to only have the identity document.

field :purpose, :string
field :url, :string
field :type, :string
field :id_from_stripe, :string, null: false
Copy link
Contributor

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

add :size, :integer
add :type, :string
add :url, :string
end
Copy link
Contributor

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.

Copy link
Contributor Author

@snewcomer snewcomer Dec 12, 2016

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)

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@joshsmith joshsmith merged commit ea785e5 into develop Dec 14, 2016
@joshsmith joshsmith deleted the stripe_file_upload branch December 14, 2016 05:04
@joshsmith
Copy link
Contributor

🙌 great work @snewcomer!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants