Project

General

Profile

Download (375 Bytes) Statistics
| Branch: | Tag: | Revision:
class AddOverrideFlagToFilter < ActiveRecord::Migration[4.2]
class FakeFilter < ApplicationRecord
self.table_name = 'filters'
end

def up
add_column :filters, :override, :boolean, :default => false, :null => false

FakeFilter.where.not(:taxonomy_search => nil).update_all(:override => true)
end

def down
remove_column :filters, :override
end
end
(331-331/408)