You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

027_create_wikis.rb 404B

1234567891011121314
  1. class CreateWikis < ActiveRecord::Migration[4.2]
  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. def self.down
  11. drop_table :wikis
  12. end
  13. end