2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/generators/notify_user/install/templates/create_notify_user_notifications.rb', line 2
def change
create_table :notify_user_notifications do |t|
t.string :type
t.integer :target_id
t.string :target_type
t.json :params
t.string :state
t.datetime :sent_time
t.integer :group_id
t.integer :parent_id
t.timestamps
end
add_index :notify_user_notifications, :group_id
add_index :notify_user_notifications, :parent_id
add_index :notify_user_notifications, :target_id
end
|