mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
14 lines
313 B
Ruby
14 lines
313 B
Ruby
class CreateNotifications < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :notifications do |t|
|
|
t.references :user
|
|
t.string :message_html
|
|
t.string :icon, default: 'notifications_active'
|
|
t.datetime :happened_at
|
|
t.datetime :viewed_at
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|