Introduction
Introduction Statistics Contact Development Disclaimer Help
refactored the generator code a little - reportable - Fork of reportable requir…
Log
Files
Refs
README
---
commit e5c3ffa50f586ab54e8ebc46fd74351bcc2716a8
parent f56d70f25f401b315602837df8fbba97969a6e77
Author: Marco Otte-Witte <[email protected]>
Date: Mon, 19 Apr 2010 14:29:02 +0200
refactored the generator code a little
Diffstat:
M generators/reportable_migration/re… | 2 +-
A generators/reportable_migration/te… | 0
C generators/reportable_migration/te… | 0
M generators/reportable_migration/te… | 2 +-
4 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/generators/reportable_migration/reportable_migration_generator.rb …
@@ -5,7 +5,7 @@ if Saulabs::Reportable::IS_RAILS3
include Rails::Generators::Migration
def create_migration
- migration_template File.join(File.dirname(__FILE__), 'templates', 'migra…
+ migration_template File.join(File.dirname(__FILE__), 'templates', 'migra…
end
def self.next_migration_number(dirname)
diff --git a/generators/reportable_migration/templates/migration-rails3.erb b/g…
diff --git a/generators/reportable_migration/templates/migration.erb b/generato…
diff --git a/generators/reportable_migration/templates/migration.erb b/generato…
@@ -1,4 +1,4 @@
-class CreateReportableCache < ActiveRecord::Migration
+class <%= class_name %> < ActiveRecord::Migration
def self.up
create_table :reportable_cache, :force => true do |t|
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.