#require 'active-record' module SM class SuperMigration attr_accessor :from_db_name, :from_host, :from_username, :from_password attr_accessor :to_db_name, :to_host, :to_username, :to_password def self.setup(&block) block.call(self) end private def self.from_database(options = {}) puts "from" return if options.size < 4 from_db_name = options[:db_name] from_host = options[:host] from_username = options[:username] from_password = options[:password] end def self.to_database(options = {}) puts "to" return if options.size < 4 to_db_name = options[:db_name] to_host = options[:host] to_username = options[:username] to_password = options[:password] end end def table(options = {}) return if options.empty? end def field(options = {}) return if options.empty? end end