Sha256: b1287b67eb604a02df0a5a0295289cf4316e924f5ed8445db5721082d6a68139
Contents?: true
Size: 593 Bytes
Versions: 68
Compression:
Stored size: 593 Bytes
Contents
class AddParticipantIdToEvents < ActiveRecord::Migration def change add_column :event_capture_events, :participant_id, :integer, null: false reversible do |dir| dir.up do execute <<-SQL ALTER TABLE event_capture_events ADD CONSTRAINT fk_events_participants FOREIGN KEY (participant_id) REFERENCES participants(id) SQL end dir.down do execute <<-SQL ALTER TABLE event_capture_events DROP CONSTRAINT IF EXISTS fk_events_participants SQL end end end end
Version data entries
68 entries across 68 versions & 1 rubygems