13 lines
198 B
Ruby
13 lines
198 B
Ruby
|
class RemoveNilTypeServices < ActiveRecord::Migration
|
||
|
DOWNTIME = false
|
||
|
|
||
|
def up
|
||
|
execute <<-SQL
|
||
|
DELETE FROM services WHERE type IS NULL OR type = '';
|
||
|
SQL
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
end
|
||
|
end
|