scinote-web/db/migrate/20170418153541_add_experiment_to_activities.rb
2017-06-30 10:23:28 +02:00

5 lines
161 B
Ruby

class AddExperimentToActivities < ActiveRecord::Migration[4.2]
def change
add_reference :activities, :experiment, index: true, foreign_key: true
end
end