python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
rails db:migrate reverts newer migrations if an old one is run for the first time
I have an app with Rails 7.0.0 and I've noticed some behaviour with db:migrate that I think it didn't happen with previous versions.
Whenever a migration is added to master from another branch and new...
Víctor
Votes: 0
Answers: 1
Rails migration: Adding a new column with different default values for existing and new records
I have table with a lot of records.
I want to add new not null column with default value: false.
But for existing records, I want to have true as the value for the new column.
What is the most correct...
exvayn
Votes: 0
Answers: 0
Renaming a column with strong_migrations enabled - Rails
I need to rename a column in a Rails project that has enabled strong_migrations. Im looking into the official guide and it specified the following steps to doing it:
Create a new column.
Write to bot...
juanmferreira93
Votes: 0
Answers: 1
After rails migration, resulting schema does not match migrations. Lingering database state?
Rails 6.1.4
Ruby 2.7
Postgresql 14
A dozen or so migrations, one schema.rb file.
I edited a migration, but did not change the migration id. The result is super weird behavior and I wanted to get input...
ColoniusRex
Votes: 0
Answers: 0