Remove custom_layout from nonprofit

This commit is contained in:
Kasia Jarmołkowicz 2018-05-30 19:22:02 +02:00 committed by Eric Schultz
parent 0a5d78b7f4
commit 74ba1cf069
3 changed files with 1 additions and 10 deletions

View file

@ -149,8 +149,6 @@ Commitchange::Application.routes.draw do
resources(:campaign_gift_options, {only: [:index, :show, :create, :update, :destroy]}) do
put(:update_order, {on: :collection})
end
get 'custom_layout', controller: 'campaigns', action: 'custom_layout'
end
resource(:billing_subscription, {only: [:create]}) do
@ -228,7 +226,6 @@ Commitchange::Application.routes.draw do
# Campaigns
match ':state_code/:city/:name/campaigns' => 'campaigns#index'
match ':state_code/:city/:name/campaigns/:campaign_slug' => 'campaigns#show', :as => :campaign_loc
match ':state_code/:city/:name/campaigns/:campaign_slug/custom_layout' => 'campaigns#custom_layout', :as => :campaign_loc
match ':state_code/:city/:name/campaigns/:campaign_slug/supporters' => 'campaigns/supporters#index', :as => :campaign_loc
match '/peer-to-peer' => 'campaigns#peer_to_peer'

View file

@ -1,5 +0,0 @@
class AddCustomLayoutToNonprofit < ActiveRecord::Migration
def change
add_column :nonprofits, :custom_layout, :string
end
end

View file

@ -1471,8 +1471,7 @@ CREATE TABLE nonprofits (
card_failure_message_bottom text,
fields_needed text,
autocomplete_supporter_address boolean DEFAULT false,
currency character varying(255) DEFAULT 'eur'::character varying,
custom_layout character varying(255)
currency character varying(255) DEFAULT 'eur'::character varying
);