Noosfero/noosfero

View on GitHub
plugins/push_notification/db/migrate/20160110125119_create_notification_settings.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateNotificationSettings < ActiveRecord::Migration[5.1]
  def change
    create_table :push_notification_plugin_notification_settings do |t|
      t.integer :user_id, null: false
      t.integer :notifications, null: false, default: 0
      t.timestamps null: false
      t.index :user_id
    end
  end
end