# Pull Request Template ## Description Add migrations for document auto-sync Fixes # (issue) ## Type of change - [x] New feature (non-breaking change which adds functionality) ## How Has This Been Tested? locally ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules
12 lines
322 B
Ruby
12 lines
322 B
Ruby
class AddSyncColumnsToCaptainDocuments < ActiveRecord::Migration[7.0]
|
|
def change
|
|
change_table :captain_documents, bulk: true do |t|
|
|
t.integer :sync_status
|
|
t.datetime :last_synced_at
|
|
t.datetime :last_sync_attempted_at
|
|
end
|
|
|
|
add_index :captain_documents, [:account_id, :sync_status]
|
|
end
|
|
end
|