[Refs #404] Remove downloads statistics functional (db and tests)

This commit is contained in:
Vladimir Sharshov 2012-04-17 17:56:44 +04:00
parent 6f5aad400c
commit dcdea4b8d3
4 changed files with 18 additions and 23 deletions

View File

@ -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

View File

@ -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"

View File

@ -1,6 +0,0 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe DownloadsController do
end

View File

@ -1,6 +0,0 @@
# -*- encoding : utf-8 -*-
require 'spec_helper'
describe Download do
pending "add some examples to (or delete) #{__FILE__}"
end