[Refs #404] Remove downloads statistics functional (db and tests)
This commit is contained in:
parent
6f5aad400c
commit
dcdea4b8d3
|
@ -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
|
12
db/schema.rb
12
db/schema.rb
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# 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|
|
create_table "activity_feeds", :force => true do |t|
|
||||||
t.integer "user_id", :null => false
|
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"
|
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|
|
create_table "event_logs", :force => true do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.string "user_name"
|
t.string "user_name"
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
require 'spec_helper'
|
|
||||||
|
|
||||||
describe DownloadsController do
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,6 +0,0 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
require 'spec_helper'
|
|
||||||
|
|
||||||
describe Download do
|
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
|
||||||
end
|
|
Loading…
Reference in New Issue