I am trying to create a small application that will connect to an obsolete db. Is there a way to define an Ecto model with attribute names other than table columns?
Sort of:
schema "oauth_access_tokens" do
field :token
field :user_id, :integer, column: :resource_owner_id
end
source
share