Class: ActiveGraph::Migrations::MigrationFile
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveGraph::Migrations::MigrationFile
 
 
- Defined in:
 - lib/active_graph/migrations/migration_file.rb
 
Instance Attribute Summary collapse
- 
  
    
      #class_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute class_name.
 - 
  
    
      #file_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute file_name.
 - 
  
    
      #symbol_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute symbol_name.
 - 
  
    
      #version  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute version.
 
Instance Method Summary collapse
- #create(options = {}) ⇒ Object
 - 
  
    
      #initialize(file_name)  ⇒ MigrationFile 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of MigrationFile.
 
Constructor Details
#initialize(file_name) ⇒ MigrationFile
Returns a new instance of MigrationFile.
      6 7 8 9  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 6 def initialize(file_name) @file_name = file_name extract_data! end  | 
  
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
      4 5 6  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 4 def class_name @class_name end  | 
  
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
      4 5 6  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 4 def file_name @file_name end  | 
  
#symbol_name ⇒ Object (readonly)
Returns the value of attribute symbol_name.
      4 5 6  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 4 def symbol_name @symbol_name end  | 
  
#version ⇒ Object (readonly)
Returns the value of attribute version.
      4 5 6  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 4 def version @version end  | 
  
Instance Method Details
#create(options = {}) ⇒ Object
      11 12 13 14  | 
    
      # File 'lib/active_graph/migrations/migration_file.rb', line 11 def create( = {}) require @file_name class_name.constantize.new(@version, ) end  |