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 / 015_create_repositories.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (320 Bytes)
| 1 |
class CreateRepositories < ActiveRecord::Migration |
|---|---|
| 2 |
def self.up |
| 3 |
create_table :repositories, :force => true do |t| |
| 4 |
t.column "project_id", :integer, :default => 0, :null => false |
| 5 |
t.column "url", :string, :default => "", :null => false |
| 6 |
end
|
| 7 |
end
|
| 8 |
|
| 9 |
def self.down |
| 10 |
drop_table :repositories
|
| 11 |
end
|
| 12 |
end
|