forked from betterplace/acts_as_account
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98a0893
commit 2cd3be9
Showing
2 changed files
with
16 additions
and
0 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class ActsAsAccountGenerator < Rails::Generator::NamedBase | |||
def manifest | |||
record do |m| | |||
m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "acts_as_account_migration" | |||
end | |||
end | |||
end |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
class ActsAsAccountMigration < ActiveRecord::Migration | |||
def self.up | |||
load(File.dirname(__FILE__) + '../../../db/schema.rb') | |||
end | |||
|
|||
def self.down | |||
# TODO: add down migration, when schema.rb was replaced | |||
end | |||
end |