Sha256: 15ca0bb2c23e3e716ccdcc947a0bdacf8d70364b2c4ac5b9e57c375195d47b2c

Contents?: true

Size: 318 Bytes

Versions: 34

Compression:

Stored size: 318 Bytes

Contents

class AddProjectToEnumerations < ActiveRecord::Migration
  def self.up
    add_column :enumerations, :project_id, :integer, :null => true, :default => nil
    add_index :enumerations, :project_id
  end

  def self.down
    remove_index :enumerations, :project_id
    remove_column :enumerations, :project_id
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.23 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.22 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.21 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.20 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.19 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.18 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.17 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.16 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.15 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.14 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.13 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.12 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.10 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb
redmine_extensions-0.0.8 spec/redmine/db/migrate/20090403001910_add_project_to_enumerations.rb