Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b1b4e26a89
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.414 kb
class AddRequirements < ActiveRecord::Migration
def self.up
create_table :requirements do |t|
t.integer "version_id"
t.integer "dependency_id"
end
remove_column :dependencies, :name
add_column :dependencies, :rubygem_id, :integer
end
def self.down
drop_table :requirements
add_column :dependencies, :name, :string
remove_column :dependencies, :rubygem_id
end
end
Jump to Line
Something went wrong with that request. Please try again.