Class: CreateSearchPage

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/refinery/search/templates/01_create_search_page.rb

Instance Method Summary collapse

Instance Method Details

#downObject



6
7
8
9
10
11
12
13
14
# File 'lib/generators/refinery/search/templates/01_create_search_page.rb', line 6

def down
  if defined?(Refinery::UserPlugin)
    Refinery::UserPlugin.destroy_all({:name => "refinerycms_search"})
  end

  if defined?(Refinery::Page)
    Refinery::Page.delete_all({:link_url => "/search"})
  end
end

#upObject



3
4
# File 'lib/generators/refinery/search/templates/01_create_search_page.rb', line 3

def up
end