lib/engines/plugin/migrator.rb
def migrated(plugin=current_plugin)
    current = ActiveRecord::Base.connection.select_value(<<-ESQL
      SELECT version FROM #{self.class.schema_info_table_name}
      WHERE plugin_name = '#{plugin.name}'
    ESQL
    ).to_i
    current ? (1..current).to_a : []
  end
# We need to be able to set the 'current' engine being migrated.
We need to be able to set the 'current' engine being migrated.
We need to be able to set the ' current ' engine being migrated .
def migrated(plugin=current_plugin)
    current = ActiveRecord::Base.connection.select_value(<<-ESQL
      SELECT version FROM #{self.class.schema_info_table_name}
      WHERE plugin_name = '#{plugin.name}'
    ESQL
    ).to_i
    current ? (1..current).to_a : []
  end
def migrated ( plugin = current_plugin ) current = ActiveRecord :: Base . connection . select_value ( <<-ESQL 
      SELECT version FROM  #{ self . class . schema_info_table_name } 
      WHERE plugin_name = ' #{ plugin . name } '
     ESQL ) . to_i current ? ( 1 .. current ) . to_a : [ ] end
We need to be able to set the 'current' engine being migrated.
We need to be able to set the ' current ' engine being migrated .
plugin
current_plugin