Skip to content
This repository
tree: 43d1991c1e
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (15 sloc) 0.388 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require "./" + File.join(File.dirname(__FILE__), "migration_helper")

Sequel.migration do
  up do
    alter_table(:commits) do
      drop_column :approved
      add_foreign_key :approved_by_user_id, :users, :key => :id
    end
  end

  down do
    alter_table(:commits) do
      drop_column :approved_by_user_id
      add_column :approved, FalseClass, :default => false
    end
  end
end
Something went wrong with that request. Please try again.