Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.327 kB
class CreateDownloads < ActiveRecord::Migration
def self.up
create_table :downloads do |table|
table.string :raw
table.belongs_to :version
table.timestamps
end
add_index :downloads, :version_id
end
def self.down
remove_index :downloads, :version_id
drop_table :downloads
end
end
Jump to Line
Something went wrong with that request. Please try again.