迁移报错

issues25489
daiao 6 years ago
parent 8e1d1bf7cc
commit cfc27bb796

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

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

Loading…
Cancel
Save