class AddBackendToMiniEnvironment < ActiveRecord::Migration[5.1] def change add_reference :mini_environments, :backend, polymorphic: true, index: true end end