2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-10-14 07:35:25 +01:00
|
|
|
class CreateDownloads < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :downloads do |t|
|
|
|
|
t.string :name, :null => false
|
|
|
|
t.string :version
|
|
|
|
t.string :distro
|
|
|
|
t.string :platform
|
|
|
|
t.integer :counter, :default => 0
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :downloads
|
|
|
|
end
|
|
|
|
end
|