Mercurial > hg > soundsoftware-site
comparison db/migrate/.svn/text-base/027_create_wikis.rb.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 class CreateWikis < ActiveRecord::Migration | |
2 def self.up | |
3 create_table :wikis do |t| | |
4 t.column :project_id, :integer, :null => false | |
5 t.column :start_page, :string, :limit => 255, :null => false | |
6 t.column :status, :integer, :default => 1, :null => false | |
7 end | |
8 add_index :wikis, :project_id, :name => :wikis_project_id | |
9 end | |
10 | |
11 def self.down | |
12 drop_table :wikis | |
13 end | |
14 end |