Sha256: eff3c3a2e29c0ac732f2491468f046666e37e47eeabe62d1bcd47d4f65ac94a6
Contents?: true
Size: 567 Bytes
Versions: 68
Compression:
Stored size: 567 Bytes
Contents
class AddSlideFkContstraintToMediaAccessEvents < ActiveRecord::Migration def change reversible do |dir| dir.up do execute <<-SQL ALTER TABLE media_access_events ADD CONSTRAINT fk_media_access_events_bit_core_slides FOREIGN KEY (bit_core_slide_id) REFERENCES bit_core_slides(id) SQL end dir.down do execute <<-SQL ALTER TABLE media_access_events DROP CONSTRAINT IF EXISTS fk_media_access_events_bit_core_slides SQL end end end end
Version data entries
68 entries across 68 versions & 1 rubygems