预上线报错

issues25489
daiao 5 years ago
parent 5f39b152cb
commit 8e1d1bf7cc

@ -1,20 +1,20 @@
class CreateCompetitionPrizeUsers < ActiveRecord::Migration[5.2]
def change
create_table :competition_prize_users do |t|
t.references :competition
t.references :competition_team
t.references :competition_prize
t.references :user
t.references :approver
t.string :status
t.integer :rank
t.boolean :leader, default: false
t.text :extra
t.datetime :approved_at
t.timestamps
# t.references :competition
# t.references :competition_team
# t.references :competition_prize
# t.references :user
# t.references :approver
#
# t.string :status
# t.integer :rank
# t.boolean :leader, default: false
# t.text :extra
#
# t.datetime :approved_at
#
# t.timestamps
end
end
end

@ -1,13 +1,13 @@
class CreateExerciseUserScores < ActiveRecord::Migration[5.2]
def change
create_table :exercise_user_scores do |t|
t.references :exercise, index: true
t.references :exercise_user, index: true
t.float :score
t.text :comment
t.references :user, index: true
t.timestamps
# t.references :exercise, index: true
# t.references :exercise_user, index: true
# t.float :score
# t.text :comment
# t.references :user, index: true
#
# t.timestamps
end
end
end

Loading…
Cancel
Save