To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 20110207142856_add_ext_rep_to_repositories.rb @ 443:350acce374a2
History | View | Annotate | Download (299 Bytes)
| 1 | 202:11661511fc20 | luis | class AddExtRepToRepositories < ActiveRecord::Migration |
|---|---|---|---|
| 2 | def self.up |
||
| 3 | add_column :repositories, :is_external, :bool |
||
| 4 | add_column :repositories, :external_url, :string |
||
| 5 | end
|
||
| 6 | |||
| 7 | def self.down |
||
| 8 | remove_column :repositories, :is_external |
||
| 9 | remove_column :repositories, :external_url |
||
| 10 | end
|
||
| 11 | end |