Latest #ecto-migration Threads 
I want to model the following relationship:
A location has zero or one of multiple (currently 7) specifications (each specification is a...
New
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
Hello there.
How do I create an unlogged table in ecto migration when I use postgresql database?
New
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
I’m currently handling auth on multi-tenancy, is this approach to migration warranted? TLWR; I’m schema targeting everything including th...
New
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
It is stated that the default gen settings can be overridden with use of appropriate options,
Default options
This generator uses def...
New
Hi! :wave:
I was thinking about this today and wanted to collect some feedback…
I have been working with an OLAP database for the past ...
New
Hi everyone,
I wanted to share some code that might be useful for those dealing with table renaming in Ecto migrations. While using Ecto...
New
I am creating a schema where the order of the column definitions is relevant due to optimum memory alignment. The table needs to hold a v...
New
This Week's Trending
This Month's Trending
This Year's Trending
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
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
Hello there.
How do I create an unlogged table in ecto migration when I use postgresql database?
New
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
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
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
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
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
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
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
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
I spent a lot of time on CI setup for a new project last week and went through all of the project staples to get things in a good place: ...
New
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
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
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
Hi! :wave:
I was thinking about this today and wanted to collect some feedback…
I have been working with an OLAP database for the past ...
New
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
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
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
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
Trending Over Three Years
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
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
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
Hi,
I’d like to change a database column’s type from :string to {:array, :string}. Migration should work as follows: "my_value" -> ["...
New
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
Hi, I need a way to handle data migrations in my application. I found an article by @wojtekmach about manual migrations: https://dashbit....
New
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
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
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
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
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
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
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
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







