Module: Devise::Orm::ActiveRecord::Schema
- Includes:
- Schema
- Defined in:
- lib/devise/orm/active_record.rb
Instance Method Summary collapse
-
#apply_devise_schema(name, type, options = {}) ⇒ Object
Tell how to apply schema methods.
Methods included from Schema
#confirmable, #database_authenticatable, #encryptable, #lockable, #reconfirmable, #recoverable, #rememberable, #token_authenticatable, #trackable
Instance Method Details
#apply_devise_schema(name, type, options = {}) ⇒ Object
Tell how to apply schema methods.
28 29 30 31 32 33 34 35 36 |
# File 'lib/devise/orm/active_record.rb', line 28 def apply_devise_schema(name, type, ={}) @__devise_warning_raised ||= begin ActiveSupport::Deprecation.warn "You are using t.database_authenticatable and others in your migration " \ "and this feature is deprecated. Please simply use Rails helpers instead as mentioned here: " \ "https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style" true end column name, type.to_s.downcase.to_sym, end |