Module: ActiveRecord::SaferMigrations::Migration
- Defined in:
- lib/active_record/safer_migrations/migration.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/active_record/safer_migrations/migration.rb', line 8 def self.included(base) base.class_eval do # Use Rails' class_attribute to get an attribute that you can # override in subclasses class_attribute :lock_timeout class_attribute :statement_timeout prepend(InstanceMethods) extend(ClassMethods) end end |