annotate db/migrate/067_create_wiki_redirects.rb @ 1254:a54ce736229d redmine-2.2-integration

simplifying the seach/tag filtering. Not filtering by tag name at the moment.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 05 Apr 2013 18:29:23 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 class CreateWikiRedirects < ActiveRecord::Migration
Chris@0 2 def self.up
Chris@0 3 create_table :wiki_redirects do |t|
Chris@0 4 t.column :wiki_id, :integer, :null => false
Chris@0 5 t.column :title, :string
Chris@0 6 t.column :redirects_to, :string
Chris@0 7 t.column :created_on, :datetime, :null => false
Chris@0 8 end
Chris@0 9 add_index :wiki_redirects, [:wiki_id, :title], :name => :wiki_redirects_wiki_id_title
Chris@0 10 end
Chris@0 11
Chris@0 12 def self.down
Chris@0 13 drop_table :wiki_redirects
Chris@0 14 end
Chris@0 15 end