Skip to content

Commit

Permalink
Merge pull request #142 from hennevogel/refactor_orders
Browse files Browse the repository at this point in the history
Remove the promo dvd order functionality
  • Loading branch information
hennevogel committed Apr 26, 2017
2 parents 98bac75 + 05b7291 commit 77747de
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 391 deletions.
7 changes: 0 additions & 7 deletions README.promodvd

This file was deleted.

41 changes: 0 additions & 41 deletions app/controllers/order_controller.rb

This file was deleted.

33 changes: 0 additions & 33 deletions app/models/order.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/promomailer.rb

This file was deleted.

88 changes: 0 additions & 88 deletions app/views/order/_form.html.erb

This file was deleted.

15 changes: 0 additions & 15 deletions app/views/order/list.html.erb

This file was deleted.

59 changes: 0 additions & 59 deletions app/views/order/new.html.erb

This file was deleted.

24 changes: 0 additions & 24 deletions app/views/order/pause.html.erb

This file was deleted.

23 changes: 0 additions & 23 deletions app/views/order/thanks.html.erb

This file was deleted.

28 changes: 0 additions & 28 deletions app/views/promomailer/promo_order.text.erb

This file was deleted.

13 changes: 0 additions & 13 deletions config/routes.rb
Expand Up @@ -57,19 +57,6 @@
get 'appstore/:category' => :category, :constraints => { :category => /[\w\-\.: ]+/ }
end

resource :orders, :controller => "order" do
member do
get 'thanks'
end
end

controller 'order' do
get 'order/thanks' => :thanks
end

get 'promodvd' => "order#new"
get 'promodvds' => "order#new"

# compatibility routes for old download implementation
get 'download' => "download#package"
get 'download.:format' => "download#package"
Expand Down
25 changes: 25 additions & 0 deletions db/migrate/20170425185949_drop_orders.rb
@@ -0,0 +1,25 @@
class DropOrders < ActiveRecord::Migration
def change
drop_table "orders", force: true do |t|
t.string "title", null: false
t.string "name", null: false
t.string "company"
t.string "street1", null: false
t.string "street2"
t.string "zip", null: false
t.string "city", null: false
t.string "county"
t.string "country", null: false
t.string "phone", null: false
t.string "email", null: false
t.integer "amount", null: false
t.text "reason", null: false
t.string "deadline", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "processed_at"
t.string "processed_by"
t.string "material"
end
end
end

0 comments on commit 77747de

Please sign in to comment.