* PushNotificationTarget model + /admin/push_notifications (index) * Admin panel CRUD + request tests * Migrate Redis backed Rpush model responsibilities into PushNotificationTarget * Fix failing specs * Fix conflicts + clean up test by using constant reference * Removed unused policy * policy + services + misc feedback * PushNotificationTarget refactored to AppIntegration * Review feedback * Some small cleanup * Refactor AppIntegration -> ConsumerApp * Fixing specs * Trigger Travis * More naming refactor changes * Refactor services into queries * Revert to where(...).first, fix typo and tests * Apply suggestions from code review Co-authored-by: rhymes <rhymes@hey.com> * PR review feedback - create_or_find_by, validations, renaming + more tests * Fix aria-label text * Remove unnecessary individual index - composite index will do Co-authored-by: rhymes <rhymes@hey.com>
14 lines
397 B
Ruby
14 lines
397 B
Ruby
class CreateConsumerApps < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :consumer_apps do |t|
|
|
t.string :app_bundle, null: false
|
|
t.string :platform, null: false
|
|
t.boolean :active, null: false, default: true
|
|
t.string :auth_key
|
|
t.string :last_error
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :consumer_apps, [:app_bundle, :platform], unique: true
|
|
end
|
|
end
|