Sha256: 9860302d4d0e291e5c784681dd3fa008ade0e33ac7868815a14444ac4d33c0f3
Contents?: true
Size: 636 Bytes
Versions: 7
Compression:
Stored size: 636 Bytes
Contents
class AddLabelRelations < ActiveRecord::Migration def self.up unless table_exists?('label_relations') create_table 'label_relations', force: true do |t| t.string 'type' t.integer 'domain_id' t.integer 'range_id' t.datetime 'created_at' t.datetime 'updated_at' end add_index 'label_relations', ['domain_id', 'range_id', 'type'], name: 'ix_label_rel_dom_rng_type' add_index 'label_relations', ['type'], name: 'ix_label_relations_on_type' end end def self.down if table_exists?('label_relations') drop_table('label_relations') end end end
Version data entries
7 entries across 7 versions & 1 rubygems