![Rails migration / Remove unique index / Mysql2::Error: Cannot drop index 'index_xxx_on_yyy_id': needed in a foreign key constraint - Qiita Rails migration / Remove unique index / Mysql2::Error: Cannot drop index 'index_xxx_on_yyy_id': needed in a foreign key constraint - Qiita](https://qiita-user-contents.imgix.net/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fpublic%2Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png?ixlib=rb-4.0.0&w=1200&mark64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZ0eHQ9JTIzUmFpbHMlMjBtaWdyYXRpb24lMjAlMkYlMjBSZW1vdmUlMjB1bmlxdWUlMjBpbmRleCUyMCUyRiUyMCUyME15c3FsMiUzQSUzQUVycm9yJTNBJTIwQ2Fubm90JTIwZHJvcCUyMGluZGV4JTIwJTI3aW5kZXhfeHh4X29uX3l5eV9pZCUyNyUzQSUyMG5lZWRlZCUyMGluJTIwYSUyMCVFMiU4MCVBNiZ0eHQtY29sb3I9JTIzMjEyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnR4dC1jbGlwPWVsbGlwc2lzJnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9MmQ0NzQ1ZGQ2MWFmMjQ2MDliZTlhYTNjNzEzNDBjMWQ&mark-x=142&mark-y=112&blend64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwWXVtYUluYXVyYSZ0eHQtY29sb3I9JTIzMjEyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9ZGYyZDRhODNlNjUyMDA1YTdhMDhlZDljZGI0NTYyNjc&blend-x=142&blend-y=491&blend-mode=normal&s=81f80dff4b84f4bf4e8b8f047bd5bc58)
Rails migration / Remove unique index / Mysql2::Error: Cannot drop index 'index_xxx_on_yyy_id': needed in a foreign key constraint - Qiita
GitHub - alex3t/rails_on_pg: PostgreSQL views, functions, triggers, foreign keys for rails migration
![Referencing the same model twice in Rails? - Ruby - SitePoint Forums | Web Development & Design Community Referencing the same model twice in Rails? - Ruby - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/4/b/4b84d932cc8ba22bc3c8300e5eb0d3b92f9c92cc.png)
Referencing the same model twice in Rails? - Ruby - SitePoint Forums | Web Development & Design Community
![ruby on rails - remove_reference and down migration of add_reference reports no foreign key - Stack Overflow ruby on rails - remove_reference and down migration of add_reference reports no foreign key - Stack Overflow](https://i.stack.imgur.com/zJzW6.png)
ruby on rails - remove_reference and down migration of add_reference reports no foreign key - Stack Overflow
![Ruby On Rails : Order of invocation of migration / model generator matters in initial design – My Daily Technical Notes [ Ruby, Rails, Gems, Server Ops] Ruby On Rails : Order of invocation of migration / model generator matters in initial design – My Daily Technical Notes [ Ruby, Rails, Gems, Server Ops]](https://cbabhusal.files.wordpress.com/2015/08/err_lost_and_found.png)