Sha256: 3a09b9d1c3e4b6c10356b97195136e83532aeccc015ccb570ca42178f11d3a3f

Contents?: true

Size: 486 Bytes

Versions: 235

Compression:

Stored size: 486 Bytes

Contents

class CreateClassifications < ActiveRecord::Migration
  def self.up
    create_table :classifications do |t|
      t.integer :parent_id
      t.string :category, :null => false
      t.text :note
      t.integer :classification_type_id, :null => false

      t.timestamps
    end
    add_index :classifications, :parent_id
    add_index :classifications, :category
    add_index :classifications, :classification_type_id
  end

  def self.down
    drop_table :classifications
  end
end

Version data entries

235 entries across 234 versions & 14 rubygems

Version Path
enju_subject-0.1.0.pre db/migrate/142_create_classifications.rb
enju_subject-0.0.18 db/migrate/142_create_classifications.rb
enju_subject-0.0.17 db/migrate/142_create_classifications.rb
enju_subject-0.0.16 db/migrate/142_create_classifications.rb
enju_subject-0.0.15 db/migrate/142_create_classifications.rb
enju_subject-0.0.14 db/migrate/142_create_classifications.rb
enju_subject-0.0.13 db/migrate/142_create_classifications.rb
enju_subject-0.0.12 db/migrate/142_create_classifications.rb
enju_subject-0.0.10 db/migrate/142_create_classifications.rb
enju_subject-0.0.9 db/migrate/142_create_classifications.rb
enju_subject-0.0.8 db/migrate/142_create_classifications.rb
enju_subject-0.0.7 db/migrate/142_create_classifications.rb
enju_subject-0.0.6 db/migrate/142_create_classifications.rb
enju_subject-0.0.5 db/migrate/142_create_classifications.rb
enju_subject-0.0.4 db/migrate/142_create_classifications.rb