mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
8 lines
198 B
Ruby
8 lines
198 B
Ruby
class MigrateDefalutToTiding < ActiveRecord::Migration[5.2]
|
|
def change
|
|
change_column_default :tidings, :status, from: nil, to: 0
|
|
|
|
Tiding.where(status: nil).update_all(status: 0)
|
|
end
|
|
end
|