Sha256: b63f7ef7ed0530e35a33236784766271a3d39b598bbfe12a0db696efcd358909
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
#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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
super_migration-0.0.0.pre1 | lib/super_migration.rb |