blob: 561eddf69e0589cb4aeaa3f74382be903edb444b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class RemoveNilTypeServices < ActiveRecord::Migration[4.2]
DOWNTIME = false
def up
execute <<-SQL
DELETE FROM services WHERE type IS NULL OR type = '';
SQL
end
def down
end
end
|