scinote-web/db/migrate/20170418153541_add_experiment_to_activities.rb

6 lines
161 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class AddExperimentToActivities < ActiveRecord::Migration[4.2]
2017-04-20 16:56:25 +08:00
def change
add_reference :activities, :experiment, index: true, foreign_key: true
end
end