Sha256: 2bd979b258eb87833e7a079517a68e01fe8db6f1df82ff3a68655ab0c91405f7

Contents?: true

Size: 456 Bytes

Versions: 68

Compression:

Stored size: 456 Bytes

Contents

class CreateSubjectHasClassifications < ActiveRecord::Migration
  def self.up
    create_table :subject_has_classifications do |t|
      t.references :subject, :polymorphic => true
      t.integer :classification_id, :null => false

      t.timestamps
    end
    add_index :subject_has_classifications, :subject_id
    add_index :subject_has_classifications, :classification_id
  end

  def self.down
    drop_table :subject_has_classifications
  end
end

Version data entries

68 entries across 68 versions & 5 rubygems

Version Path
enju_manifestation_viewer-0.1.0.pre16 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_manifestation_viewer-0.1.0.pre15 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_manifestation_viewer-0.1.0.pre14 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre32 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_event-0.1.17.pre18 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_manifestation_viewer-0.1.0.pre13 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre31 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre30 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre29 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre28 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre27 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre26 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre25 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre24 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre23 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre22 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre21 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre20 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre19 spec/dummy/db/migrate/143_create_subject_has_classifications.rb
enju_ndl-0.1.0.pre18 spec/dummy/db/migrate/143_create_subject_has_classifications.rb