1 2 3 4 5
class AddBackendToMiniEnvironment < ActiveRecord::Migration[5.1] def change add_reference :mini_environments, :backend, polymorphic: true, index: true end end