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_loc-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.2.0.beta.2 db/migrate/142_create_classifications.rb
enju_bookmark-0.2.0.beta.2 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.2.0.beta.2 spec/dummy/db/migrate/142_create_classifications.rb
enju_bookmark-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_oai-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_flower-0.1.2 spec/dummy/db/migrate/142_create_classifications.rb
enju_nii-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.2.0.beta.1 db/migrate/142_create_classifications.rb
enju_biblio-0.2.0.beta.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.3 spec/dummy/db/migrate/142_create_classifications.rb
enju_grid-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_oai-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_bookmark-0.1.3 spec/dummy/db/migrate/142_create_classifications.rb
enju_loc-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_nii-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_flower-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.2 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.1 spec/dummy/db/migrate/142_create_classifications.rb