Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160328112808_create_notification_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d77e8004baf04c26f8496b645a898f781fb517f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# rubocop:disable all
class CreateNotificationSettings < ActiveRecord::Migration
  def change
    create_table :notification_settings do |t|
      t.references :user, null: false
      t.references :source, polymorphic: true, null: false
      t.integer :level, default: 0, null: false

      t.timestamps null: false
    end
  end
end