15 lines
255 B
Ruby
15 lines
255 B
Ruby
|
class UserExercise < ActiveRecord::Migration
|
||
|
def up
|
||
|
create_table :user_exercise do |t|
|
||
|
t.integer :user_id
|
||
|
t.integer :exercise_id
|
||
|
t.integer :score
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
drop_table :user_exercise
|
||
|
end
|
||
|
end
|