You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20191018022821_create_compe...

13 lines
295 B

class CreateCompetitionAwards < ActiveRecord::Migration[5.2]
def change
create_table :competition_awards do |t|
t.references :competition, index: true
t.string :name
t.integer :num, default: 0
t.integer :award_type, default: 0
t.timestamps
end
end
end