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_nii-0.1.0.pre9 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre44 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.1.0.pre21 db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre43 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre26 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre25 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre42 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.1.0.pre20 db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre24 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre41 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre23 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.1.0.pre19 db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre40 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre22 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre39 spec/dummy/db/migrate/142_create_classifications.rb
enju_subject-0.1.0.pre18 db/migrate/142_create_classifications.rb
enju_subject-0.1.0.pre17 db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre21 spec/dummy/db/migrate/142_create_classifications.rb
enju_biblio-0.1.0.pre38 spec/dummy/db/migrate/142_create_classifications.rb
enju_ndl-0.1.0.pre20 spec/dummy/db/migrate/142_create_classifications.rb