Module: Outrigger
- Defined in:
- lib/outrigger.rb,
lib/outrigger/railtie.rb,
lib/outrigger/version.rb,
lib/outrigger/migrator.rb,
lib/outrigger/taggable.rb,
lib/outrigger/taggable_proxy.rb
Defined Under Namespace
Modules: Migrator, Taggable, TaggableProxy Classes: Railtie
Constant Summary collapse
- VERSION =
'3.1.0'
Class Attribute Summary collapse
-
.ordered ⇒ Object
Returns the value of attribute ordered.
Class Method Summary collapse
Class Attribute Details
.ordered ⇒ Object
Returns the value of attribute ordered.
13 14 15 |
# File 'lib/outrigger.rb', line 13 def ordered @ordered end |
Class Method Details
.filter(*tags) ⇒ Object
15 16 17 18 |
# File 'lib/outrigger.rb', line 15 def filter(*) = .flatten.map(&:to_sym) proc { |migration| ( - migration.).empty? } end |
.migration_context ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/outrigger.rb', line 20 def migration_context if ActiveRecord.version < Gem::Version.new('7.2') ActiveRecord::Base.connection.migration_context else ActiveRecord::Base.connection_pool.migration_context end end |