Spec::Example::ExampleGroup
# File lib/spec/example/migration_example_group.rb, line 53 def all_databases @@migrations.map { |m| m.database }.uniq end
# File lib/spec/example/migration_example_group.rb, line 49 def migration_name @migration_name ||= self.class.instance_variable_get("@description_text").to_s end
# File lib/spec/example/migration_example_group.rb, line 45 def run_migration this_migration.perform_up end
# File lib/spec/example/migration_example_group.rb, line 34 def run_prereq_migrations "running n-1 migrations" all_databases.each do |db| db.adapter.recreate_database end @@migrations.sort.each do |migration| break if migration.name.to_s == migration_name.to_s migration.perform_up end end
# File lib/spec/example/migration_example_group.rb, line 61 def select(sql) this_migration.adapter.select(sql) end
Generated with the Darkfish Rdoc Generator 2.