Skip to content
Snippets Groups Projects
Commit 4b395045 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

notification level for user

parent cf6d4dc1
Branches
Tags
No related merge requests found
Loading
@@ -53,6 +53,13 @@ class User < ActiveRecord::Base
Loading
@@ -53,6 +53,13 @@ class User < ActiveRecord::Base
attr_accessible :login attr_accessible :login
   
   
#
# Notification levels
#
N_DISABLED = 0
N_PARTICIPATING = 1
N_WATCH = 2
# #
# Relations # Relations
# #
Loading
Loading
class AddNotificationLevelToUser < ActiveRecord::Migration
def change
add_column :users, :notification_level, :integer, null: false, default: 1
end
end
Loading
@@ -11,7 +11,7 @@
Loading
@@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
   
ActiveRecord::Schema.define(:version => 20130318212250) do ActiveRecord::Schema.define(:version => 20130325173941) do
   
create_table "events", :force => true do |t| create_table "events", :force => true do |t|
t.string "target_type" t.string "target_type"
Loading
@@ -270,6 +270,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do
Loading
@@ -270,6 +270,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do
t.boolean "can_create_team", :default => true, :null => false t.boolean "can_create_team", :default => true, :null => false
t.string "state" t.string "state"
t.integer "color_scheme_id", :default => 1, :null => false t.integer "color_scheme_id", :default => 1, :null => false
t.integer "notification_level", :default => 1, :null => false
end end
   
add_index "users", ["admin"], :name => "index_users_on_admin" add_index "users", ["admin"], :name => "index_users_on_admin"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment