parent
dfeef71606
commit
43c03f1376
@ -0,0 +1,9 @@
|
|||||||
|
class AddIssuePriosityToTable < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
name = %w(低 正常 高 紧急 立刻)
|
||||||
|
position = %w(1 2 3 4 5)
|
||||||
|
name.each_with_index do |n, index|
|
||||||
|
IssuePriority.create!(name:n, position: position[index])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue