gitlab-org--gitlab-foss/db/migrate/20160328112808_create_notification_settings.rb
Dmitriy Zaporozhets 31b0e53015 Introduce NotificationSetting model
It will hold notification setting per group or per project. It will
allow get rid of notification level stored in Member model

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-30 10:44:20 +02:00

12 lines
272 B
Ruby

class CreateNotificationSettings < ActiveRecord::Migration
def change
create_table :notification_settings do |t|
t.integer :user_id
t.integer :level
t.integer :source_id
t.string :source_type
t.timestamps null: false
end
end
end