mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
fix default value for position of checklist items
This commit is contained in:
parent
4855111dcb
commit
cf57c5dc87
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
class RemoveDefaultChecklistItemPositionValue < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :checklist_items, :position, :integer, default: nil, null: true
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :checklist_items, :position, :integer, default: 0, null: false
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue