Mercurial > hg > soundsoftware-site
comparison db/migrate/028_create_wiki_pages.rb @ 912:5e80956cc792 cannam_integration
Merge from branch "redmine-1.3"
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2012 13:53:18 +0000 |
parents | cbb26bc654de |
children |
comparison
equal
deleted
inserted
replaced
911:487d96eac004 | 912:5e80956cc792 |
---|---|
1 class CreateWikiPages < ActiveRecord::Migration | 1 class CreateWikiPages < ActiveRecord::Migration |
2 def self.up | 2 def self.up |
3 create_table :wiki_pages do |t| | 3 create_table :wiki_pages do |t| |
4 t.column :wiki_id, :integer, :null => false | 4 t.column :wiki_id, :integer, :null => false |
5 t.column :title, :string, :limit => 255, :null => false | 5 t.column :title, :string, :limit => 255, :null => false |
6 t.column :created_on, :datetime, :null => false | 6 t.column :created_on, :datetime, :null => false |
7 end | 7 end |
8 add_index :wiki_pages, [:wiki_id, :title], :name => :wiki_pages_wiki_id_title | 8 add_index :wiki_pages, [:wiki_id, :title], :name => :wiki_pages_wiki_id_title |
9 end | 9 end |
10 | 10 |
11 def self.down | 11 def self.down |