2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/generators/rails-push-notifications/templates/migrations/create_rails_push_notifications_notifications.rb', line 2
def change
create_table :rails_push_notifications_notifications do |t|
t.text :destinations
t.integer :app_id
t.string :app_type
t.text :data
t.text :results
t.integer :success
t.integer :failed
t.boolean :sent, default: false
t.timestamps null: false
end
add_index(
:rails_push_notifications_notifications,
[:app_id, :app_type, :sent],
name: 'app_and_sent_index_on_rails_push_notifications'
)
end
|