require "historiographer/postgres_migration" class CreateEasyMLModelFileHistories < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change unless table_exists?(:easy_ml_model_file_histories) create_table :easy_ml_model_file_histories do |t| t.histories(foreign_key: :model_file_id) end end end end