2016-11-02 17:34:29 +01:00
|
|
|
class UpdateSearchesToVersion2 < ActiveRecord::Migration
|
|
|
|
def up
|
2017-02-14 18:20:40 +01:00
|
|
|
replace_view :searches, version: 2 unless Rails.env.test?
|
2016-11-02 17:34:29 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2017-02-14 18:20:40 +01:00
|
|
|
replace_view :searches, version: 1 unless Rails.env.test?
|
2016-11-02 17:34:29 +01:00
|
|
|
end
|
|
|
|
end
|