Sha256: 830936a06e1ddac60148756660303e4bee5689a8c8d64e29c3e6cb717baf1d29
Contents?: true
Size: 736 Bytes
Versions: 4
Compression:
Stored size: 736 Bytes
Contents
class RemoveClassificationsAndClassifiers < ActiveRecord::Migration[4.2] def self.up drop_table 'classifications' drop_table 'classifiers' end def self.down create_table 'classifications', force: true do |t| t.integer 'owner_id' t.integer 'target_id' t.datetime 'created_at' t.datetime 'updated_at' end add_index 'classifications', ['owner_id', 'target_id'], name: 'ix_classifications_fk' create_table 'classifiers', force: true do |t| t.string 'title' t.string 'description' t.string 'notation' t.datetime 'created_at' t.datetime 'updated_at' end add_index 'classifiers', ['notation'], name: 'ix_classifiers_on_notation' end end
Version data entries
4 entries across 4 versions & 1 rubygems