OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20210616191052_create_notif...

19 lines
612 B

class CreateNotifications < ActiveRecord::Migration[6.1]
def change
create_table :notifications do |t|
t.text :subject
t.boolean :read_ian, default: false, index: true
t.boolean :read_email, default: false, index: true
t.integer :reason, limit: 1
t.references :recipient, null: false, index: true, foreign_key: { to_table: :users }
t.references :actor, null: true, foreign_key: { to_table: :users }
t.references :resource, polymorphic: true, null: false
t.references :project
t.references :journal, index: false
t.timestamps
end
end
end