Skip to content

Ecto error when installing app to store #64

Answered by ericdude4
stiegi asked this question in Q&A
Discussion options

You must be logged in to vote

hi @stiegi !

Sorry about that! I think the mix shopifex.install no longer injects the fields into the schemas properly any more, so you need to manually update the following files and input their field names: shopify_shop.ex, shopify_grant.ex, shopify_plan.ex.

For example, these changes were needed for shopify_shop.ex:

Before:

defmodule ShopifexTest.ShopifyShops.ShopifyShop do
  use Ecto.Schema
  import Ecto.Changeset
  
  schema "shopify_shops" do
    
    has_many :grants, ShopifexTest.ShopifyShops.ShopifyGrant, foreign_key: :shop_id
    
    timestamps()
  end

  @doc false
  def changeset(shopify_shop, attrs) do
    shopify_shop
    |> cast(attrs, [:url, :access_token, :scope])
    |> v…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stiegi
Comment options

Answer selected by stiegi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants