module OnlineMigrations
Constants
- VERSION
Attributes
current_migration[RW]
@private
Public Class Methods
config()
click to toggle source
# File lib/online_migrations.rb, line 67 def config @config ||= Config.new end
configure() { |config| ... }
click to toggle source
# File lib/online_migrations.rb, line 63 def configure yield config end
load()
click to toggle source
# File lib/online_migrations.rb, line 71 def load require "active_record/connection_adapters/postgresql_adapter" ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(OnlineMigrations::SchemaStatements) ActiveRecord::Migration.prepend(OnlineMigrations::Migration) ActiveRecord::Migrator.prepend(OnlineMigrations::Migrator) ActiveRecord::Tasks::DatabaseTasks.singleton_class.prepend(OnlineMigrations::DatabaseTasks) ActiveRecord::ConnectionAdapters::SchemaCache.prepend(OnlineMigrations::SchemaCache) ActiveRecord::Migration::CommandRecorder.include(OnlineMigrations::CommandRecorder) if OnlineMigrations::Utils.ar_version <= 5.1 ActiveRecord::ConnectionAdapters::ForeignKeyDefinition.prepend(OnlineMigrations::ForeignKeyDefinition) end end