##// END OF EJS Templates
Adds a unique index on members (#6826)....
Adds a unique index on members (#6826). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4369 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r320:c514316a2efc
r4255:c50b611f8513
Show More
027_create_wikis.rb
14 lines | 403 B | text/x-ruby | RubyLexer
/ db / migrate / 027_create_wikis.rb
class CreateWikis < ActiveRecord::Migration
def self.up
create_table :wikis do |t|
t.column :project_id, :integer, :null => false
t.column :start_page, :string, :limit => 255, :null => false
t.column :status, :integer, :default => 1, :null => false
end
add_index :wikis, :project_id, :name => :wikis_project_id
end
def self.down
drop_table :wikis
end
end