Drop unused email column from users table.

This commit is contained in:
Guo Xiang Tan
2017-11-07 10:06:42 +08:00
parent 7eb5f78343
commit b3237d37f0
3 changed files with 33 additions and 20 deletions

View File

@@ -19,6 +19,9 @@ class User < ActiveRecord::Base
include Roleable
include HasCustomFields
# TODO: Remove this after 7th Jan 2018
self.ignored_columns = %w{email}
has_many :posts
has_many :notifications, dependent: :destroy
has_many :topic_users, dependent: :destroy