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