mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
16 lines
348 B
Ruby
16 lines
348 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MakeTrackCfpActiveNotNull < ActiveRecord::Migration
|
|
class TmpTrack < ActiveRecord::Base
|
|
self.table_name = 'tracks'
|
|
end
|
|
|
|
def change
|
|
TmpTrack.where(cfp_active: nil).each do |track|
|
|
track.cfp_active = true
|
|
track.save!
|
|
end
|
|
|
|
change_column_null :tracks, :cfp_active, false
|
|
end
|
|
end
|