Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the ar connection code into its own file so I can re-use it in …
…the loader code. Cleaned up the migration_generator class to remove duplicated code
- Loading branch information
1 parent
390f81e
commit 807ae99
Showing
3 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#--------------------------------------------------------------------- | ||
# Generated on <%= Time.new.inspect -%> by <%= Etc.getlogin %> | ||
# Using Generator 0.1.1 | ||
#--------------------------------------------------------------------- | ||
require 'active_record' | ||
|
||
ActiveRecord::Base.establish_connection( | ||
:adapter => '<%= @options[:db_adapter] -%>', | ||
:database => '<%= @options[:db_path] -%>' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters