From dcdea4b8d39ea781199611b3ce42de6f8ccf25d4 Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Tue, 17 Apr 2012 17:56:44 +0400 Subject: [PATCH] [Refs #404] Remove downloads statistics functional (db and tests) --- db/migrate/20120417133722_remove_downloads.rb | 17 +++++++++++++++++ db/schema.rb | 12 +----------- spec/controllers/downloads_controller_spec.rb | 6 ------ spec/models/download_spec.rb | 6 ------ 4 files changed, 18 insertions(+), 23 deletions(-) create mode 100644 db/migrate/20120417133722_remove_downloads.rb delete mode 100644 spec/controllers/downloads_controller_spec.rb delete mode 100644 spec/models/download_spec.rb diff --git a/db/migrate/20120417133722_remove_downloads.rb b/db/migrate/20120417133722_remove_downloads.rb new file mode 100644 index 000000000..40c07f4d9 --- /dev/null +++ b/db/migrate/20120417133722_remove_downloads.rb @@ -0,0 +1,17 @@ +class RemoveDownloads < ActiveRecord::Migration + def up + drop_table :downloads + end + + def down + create_table "downloads", :force => true do |t| + t.string "name", :null => false + t.string "version" + t.string "distro" + t.string "platform" + t.integer "counter", :default => 0 + t.datetime "created_at" + t.datetime "updated_at" + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 8065f16ee..4fa816b83 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120413160722) do +ActiveRecord::Schema.define(:version => 20120417133722) do create_table "activity_feeds", :force => true do |t| t.integer "user_id", :null => false @@ -109,16 +109,6 @@ ActiveRecord::Schema.define(:version => 20120413160722) do add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority" - create_table "downloads", :force => true do |t| - t.string "name", :null => false - t.string "version" - t.string "distro" - t.string "platform" - t.integer "counter", :default => 0 - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "event_logs", :force => true do |t| t.integer "user_id" t.string "user_name" diff --git a/spec/controllers/downloads_controller_spec.rb b/spec/controllers/downloads_controller_spec.rb deleted file mode 100644 index ee69bcadc..000000000 --- a/spec/controllers/downloads_controller_spec.rb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- encoding : utf-8 -*- -require 'spec_helper' - -describe DownloadsController do - -end diff --git a/spec/models/download_spec.rb b/spec/models/download_spec.rb deleted file mode 100644 index b1856dc57..000000000 --- a/spec/models/download_spec.rb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- encoding : utf-8 -*- -require 'spec_helper' - -describe Download do - pending "add some examples to (or delete) #{__FILE__}" -end