view 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
line wrap: on
line source
class CreateWikiRedirects < ActiveRecord::Migration
  def self.up
    create_table :wiki_redirects do |t|
      t.column :wiki_id, :integer, :null => false
      t.column :title, :string
      t.column :redirects_to, :string
      t.column :created_on, :datetime, :null => false
    end
    add_index :wiki_redirects, [:wiki_id, :title], :name => :wiki_redirects_wiki_id_title
  end

  def self.down
    drop_table :wiki_redirects
  end
end