1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/db/migrate/20140529145140_create_user_trainings.rb

13 lines
257 B
Ruby

# frozen_string_literal:true
class CreateUserTrainings < ActiveRecord::Migration[4.2]
def change
create_table :user_trainings do |t|
t.belongs_to :user, index: true
t.belongs_to :machine, index: true
t.timestamps
end
end
end