This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

mrnovalles
We’re proud and happy users of Oban.Pro , however in the most recent upgrade to v1.5.0, the migrations ended up locking the oban_jobs tab...
New
zac
Has anyone set up their Ash Framework Postgres app deployment (and, most importantly, migration) on Fly.io? I’m trying to figure out wha...
New
mybadclan
Hello there. How do I create an unlogged table in ecto migration when I use postgresql database?
New
lkananowicz
Hi, I noticed strange problem in my Elixir app, whenever I run new migration on production env I get no feedback and the application star...
New
carlosfritz
I want to model the following relationship: A location has zero or one of multiple (currently 7) specifications (each specification is a...
New

Last Three Year's Trending Top

fireproofsocks
There is a nice table showing the available data types used in Ecto Schemas: https://hexdocs.pm/ecto/Ecto.Schema.html#module-primitive-ty...
New
fireproofsocks
Anyone who has worked on an old code-base is familiar with this problem: the migrations folder can get huge. The database your app start...
New
pinksynth
Hi all! First time posting, let me know if I can structure my question better. I am using Ecto migrations on a project and need to add c...
New
nallwhy
I’m deploying my app with fly.io. I have no idea how to run ecto migration before deploying. If I don’t do that, new version app will m...
New
benswift
I created a table with a foreign key, and specified on_delete: :nothing like so: create table(:foo) do add :bar_id, references(:bar, o...
New
spencer.christensen
Howdy y’all, I’m brand new to Elixir and have what is likely a simple problem. I created an Ecto schema with a votes column that is type...
New
fireproofsocks
I’m working on a fairly mature database and writing a new Elixir app to sit on top of it. The problem is getting the migrations started....
New
franckstifler
Hi, I’m building a multi-tenant app using prefixes. I wish to seed data on a given prefix using two different ways: using the command: ...
New
Rodeoclash
Has anyone had success with getting Ecto to use externally generated migration files? I have a directory of SQL files that I would like t...
New
1stSolo
how do I make a reversible reference migration, i.e. adding the referential constraint on “up” action and dropping it on “down” action, u...
New
fireproofsocks
In the process of migration between databases, I’m needing to do re-create some migrations that INSERT data. Let’s ignore the discussion/...
New
sharkmyster
I’m trying to create a unique index with an ecto migration for a PostgresDB. def change do create table(:categories) do add(:name...
New
zoedsoupe
I created an umbrella app as a template for a workshop I’ll give into my university. So I preferred to show an umbrella project to build ...
New
iarekk
Hi all, new to Elixir, going through the “Programming Phoenix LiveView” book right now. Fairly new to working with Ecto as well :slight_s...
New
jstimps
Hi, I’m working on an Ecto Adapter for FoundationDB and one of my goals is to support migrations in the same manner that Ecto users are ...
New

Trending Over Three Years Top

pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
anelixiruser
When I add a column to an existing table, I’d like to set a default value for the rows already in the table, but I don’t want there to be...
New
dcrck
Hi, I’d like to change a database column’s type from :string to {:array, :string}. Migration should work as follows: "my_value" -> ["...
New
hudsonbay
Hi, please. I have a question regarding migrations in Ecto. But maybe this more of a PostgreSQL question rather than an Elixir one. I ha...
New
Kurisu
I want to run a specific migration file but I want it to keep its pending status on next call of ecto_migrate. Please, is quiet the righ...
New
stefanchrobot
Hi, I need a way to handle data migrations in my application. I found an article by @wojtekmach about manual migrations: https://dashbit....
New
shijith.k
I have a varchar field in my table. It has values like verify and invite. I want to use enum instead of this, and I am planning to use Ec...
New
tadasajon
What is the correct syntax for declaring that a column in an Ecto migration should have a default value of null? The docs seem to sugges...
New
romenigld
I was trying this command for generate a migration for many to many: mix ecto.gen.migration create_albums_genre album_id:references:albu...
New
MarkMekhaiel
Hi, I’ve a few million records, and I’m trying to add a column, uuid, to their table that has a default value of each row’s id field. Is...
New
AungMyoOo168
When I use remove key in migration it was not delete the constraint in the table it only delete column name. Please help how can i create...
New
AlchemistCamp
How do you create an index on a JSONB field in an Ecto migration? I’m trying to do the equivalent of this: CREATE TABLE comments(id INT,...
New
bigbassroller
I’ve been trying to get foreign_keys to work with string id’s for days and still have not been able to figure it out. I am stuck with th...
New
sirfitz
Hi Everyone :slight_smile: I’m having a bit of trouble with has_many foreign key relationships in Ecto, I’ve followed the instructions b...
New
dgreiss
Hi everyone, I’m building out a complex database schema as part of a Phoenix app and I’m running into an error when i make updates to th...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement