Class: ScideaHsfcPolicies99Remove
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- ScideaHsfcPolicies99Remove
- Defined in:
- lib/generators/scidea/hsfc/policies/templates/removal/scidea_hsfc_policies_99_remove.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/scidea/hsfc/policies/templates/removal/scidea_hsfc_policies_99_remove.rb', line 9 def down Setting.find_or_create_by_name(:name => 'Registration: Privacy Policy URL (en)', :value => '#') Setting.find_or_create_by_name(:name => 'Registration: Privacy Policy URL (fr)', :value => '#') Setting.find_or_create_by_name(:name => 'Registration: Terms and Conditions URL (en)', :value => '#') Setting.find_or_create_by_name(:name => 'Registration: Terms and Conditions URL (fr)', :value => '#') end |
#up ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/scidea/hsfc/policies/templates/removal/scidea_hsfc_policies_99_remove.rb', line 2 def up Setting.where(:name => 'Registration: Privacy Policy URL (en)').destroy_all Setting.where(:name => 'Registration: Privacy Policy URL (fr)').destroy_all Setting.where(:name => 'Registration: Terms and Conditions URL (en)').destroy_all Setting.where(:name => 'Registration: Terms and Conditions URL (fr)').destroy_all end |