Hello, this happens when I migrate my database. But I have a solution to this.
Initially, I was using MySQL on Xampp to connect to my Ruby on Rails project. When I changed my database to SQLite3, the migrations worked—there were no errors at all.
I think the issue was with the database I was using.