2018-04-10 13:43:27 -06:00
|
|
|
class CreateInUseResources < ActiveRecord::Migration[5.1]
|
|
|
|
# I goofed up on this migration and deployed to staging before I could fix.
|
|
|
|
# See later migration that creates a new view using the `scenic` gem. - RC
|
2018-07-26 14:55:20 -06:00
|
|
|
safety_assured
|
2018-04-10 13:43:27 -06:00
|
|
|
def up
|
|
|
|
execute "DROP VIEW IF EXISTS in_use_tools;"
|
|
|
|
execute "DROP VIEW IF EXISTS in_use_points;"
|
|
|
|
|
|
|
|
create_view :in_use_tools
|
|
|
|
create_view :in_use_points
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
drop_view :in_use_tools
|
|
|
|
drop_view :in_use_points
|
|
|
|
end
|
|
|
|
end
|