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