search for: rbacdatastructures

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

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 :table_name < ActiveRecord::Base; end create_table :table_name do |t| t.column :column_1 :string ... end end def self.down drop_database <<dbname...