require "migrate"
-class AddForeignKeys < ActiveRecord::Migration[5.0]
+class AddForeignKeys < ActiveRecord::Migration[4.2]
def self.up
add_foreign_key :changeset_tags, :changesets, :column => :id, :name => "changeset_tags_id_fkey"
add_foreign_key :diary_comments, :diary_entries, :name => "diary_comments_diary_entry_id_fkey"