迁移报错

issues25489
daiao 6 years ago
parent cfc27bb796
commit 6da56a1d58

@ -1,13 +1,13 @@
class CreateCompetitionPrizes < ActiveRecord::Migration[5.2] class CreateCompetitionPrizes < ActiveRecord::Migration[5.2]
def change def change
# create_table :competition_prizes do |t| create_table :competition_prizes do |t|
# t.references :competition t.references :competition
#
# t.string :name t.string :name
# t.string :category t.string :category
# t.integer :num t.integer :num
#
# t.timestamps t.timestamps
# end end
end end
end end

@ -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