demarches-normaliennes/db/migrate/20161102154835_update_searches_to_version_2.rb
Simon Lehericey 8bccf375e1 Tests: adapt migration to sqlite
Add sqlite
Remove scenic from tests
2017-02-28 17:01:58 +01:00

9 lines
218 B
Ruby

class UpdateSearchesToVersion2 < ActiveRecord::Migration
def up
replace_view :searches, version: 2 unless Rails.env.test?
end
def down
replace_view :searches, version: 1 unless Rails.env.test?
end
end