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.
13 lines
340 B
13 lines
340 B
class CreateAnnomarks < ActiveRecord::Migration[6.1] |
|
def change |
|
create_table :annomarks do |t| |
|
t.string :name, null: false, default: "" |
|
t.string :code, null: false, default: "" |
|
t.integer :rank, null: false, default: 0 |
|
|
|
t.timestamps |
|
end |
|
|
|
add_index :annomarks, %i[name code], uniquness: true |
|
end |
|
end
|
|
|