Class: ActiveColumn::MigrationProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/active_column/migration.rb

Overview

MigrationProxy is used to defer loading of the actual migration classes until they are needed

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



104
105
106
# File 'lib/active_column/migration.rb', line 104

def filename
  @filename
end

#nameObject

Returns the value of attribute name.



104
105
106
# File 'lib/active_column/migration.rb', line 104

def name
  @name
end

#versionObject

Returns the value of attribute version.



104
105
106
# File 'lib/active_column/migration.rb', line 104

def version
  @version
end

Instance Method Details

#announce(*args) ⇒ Object



110
111
112
# File 'lib/active_column/migration.rb', line 110

def announce(*args)
  migration.announce *args
end

#migrate(*args) ⇒ Object



106
107
108
# File 'lib/active_column/migration.rb', line 106

def migrate(*args)
  migration.migrate *args
end

#write(*args) ⇒ Object



114
115
116
# File 'lib/active_column/migration.rb', line 114

def write(*args)
  migration.write *args
end