2011-10-14 07:35:25 +01:00
|
|
|
class CreateDownloads < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :downloads do |t|
|
2014-01-21 04:51:49 +00:00
|
|
|
t.string :name, null: false
|
2011-10-14 07:35:25 +01:00
|
|
|
t.string :version
|
|
|
|
t.string :distro
|
|
|
|
t.string :platform
|
2014-01-21 04:51:49 +00:00
|
|
|
t.integer :counter, default: 0
|
2011-10-14 07:35:25 +01:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :downloads
|
|
|
|
end
|
|
|
|
end
|