Is there a way to pass the database name in config/database.yml to a
migration task such that the appropriate (test, development or
production) DB is created by the initial migration?
What I would like to do is to get this sort of thing to work:
class RbacDataStructures < ActiveRecord::Migration
class :table_name < ActiveRecord::Base; end create_table :table_name do |t| t.column :column_1 :string ... end