search for: vartiables

Displaying 1 result from an estimated 1 matches for "vartiables".

Did you mean: variables
2006 Apr 26
2
migrations and database creation
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 def self.up create_database <<dbname from database.yml>> class