Parent

Included Modules

Spec::Example::MigrationExampleGroup

Public Instance Methods

all_databases() click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 53
53:       def all_databases
54:         @@migrations.map { |m| m.database }.uniq
55:       end
migration_name() click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 49
49:       def migration_name
50:         @migration_name ||= self.class.instance_variable_get("@description_text").to_s
51:       end
run_migration() click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 45
45:       def run_migration
46:         this_migration.perform_up
47:       end
run_prereq_migrations() click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 34
34:       def run_prereq_migrations
35:         "running n-1 migrations"
36:         all_databases.each do |db|
37:           db.adapter.recreate_database
38:         end
39:         @@migrations.sort.each do |migration|
40:           break if migration.name.to_s == migration_name.to_s
41:           migration.perform_up
42:         end
43:       end
select(sql) click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 61
61:       def select(sql)
62:         this_migration.adapter.select(sql)
63:       end
table(table_name) click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 65
65:       def table(table_name)
66:         this_migration.adapter.table(table_name)
67:       end
this_migration() click to toggle source
    # File lib/spec/example/migration_example_group.rb, line 57
57:       def this_migration
58:         @@migrations.select { |m| m.name.to_s == migration_name }.first
59:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.