Referencing to Rails 4.2 add_foreign_key support:
# add a foreign key to `articles.author_id` referencing `authors.id` add_foreign_key :articles, :au
Adding optional: true along with belongs_to :author in article model will do the job.
optional: true
belongs_to :author
article