class AddAssociatedTogglEntryId < ActiveRecord::Migration[7.1] def change add_column :tracked_time_entries, :associated_toggl_entry_id, :integer, null: false # Make column unique add_index :tracked_time_entries, :associated_toggl_entry_id, unique: true end end