diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-26 12:16:49 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-26 12:48:07 +0400 |
commit | 4b3950456d666bc92fcf123532e73ae82c3c5e12 (patch) | |
tree | fa9c07974df8b507846449fc27419b5c901e5e80 /db | |
parent | cf6d4dc10c8d6488153c73a3586d2d3477d735fc (diff) |
notification level for user
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130325173941_add_notification_level_to_user.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130325173941_add_notification_level_to_user.rb b/db/migrate/20130325173941_add_notification_level_to_user.rb new file mode 100644 index 00000000000..9f466e38c13 --- /dev/null +++ b/db/migrate/20130325173941_add_notification_level_to_user.rb @@ -0,0 +1,5 @@ +class AddNotificationLevelToUser < ActiveRecord::Migration + def change + add_column :users, :notification_level, :integer, null: false, default: 1 + end +end diff --git a/db/schema.rb b/db/schema.rb index e4349ac4bf7..3c8b9eaee43 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # 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| t.string "target_type" @@ -270,6 +270,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do t.boolean "can_create_team", :default => true, :null => false t.string "state" t.integer "color_scheme_id", :default => 1, :null => false + t.integer "notification_level", :default => 1, :null => false end add_index "users", ["admin"], :name => "index_users_on_admin" |