こんにちは!kossyです! さて、今回は、Rails5.2系で外部キーを設定しようとした時に遭遇したエラーについて、 ブログに残してみたいと思います。 環境 Rails 5.2.2 Ruby 2.5.1 エラーの状況 2019****_create_category.rb class CreateCategories < ActiveRecord::Migration[5.2] def change create_table :categories do |t| t.string :name, null: false t.text :content, null: false t.string :image, null: false t.timestamps end end end 2019****_create_article.rb class CreateArticles < Acti