2012-04-17 14:56:44 +01:00
|
|
|
class RemoveDownloads < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
drop_table :downloads
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2014-01-21 04:51:49 +00:00
|
|
|
create_table "downloads", force: true do |t|
|
|
|
|
t.string "name", null: false
|
2012-04-17 14:56:44 +01:00
|
|
|
t.string "version"
|
|
|
|
t.string "distro"
|
|
|
|
t.string "platform"
|
2014-01-21 04:51:49 +00:00
|
|
|
t.integer "counter", default: 0
|
2012-04-17 14:56:44 +01:00
|
|
|
t.datetime "created_at"
|
|
|
|
t.datetime "updated_at"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|