Adding limit to strings in migration because mysqls max keylength would be exeeded otherwise - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit c359b0eb474d71f094ab70340137e3060f448da7
 (DIR) parent ab9fe12fc9ff3f2a80790f9f39ecb0929a50bbb9
 (HTM) Author: Martin Kavalar <martin@sauspiel.de>
       Date:   Tue, 20 Apr 2010 12:28:03 +0200
       
       Adding limit to strings in migration because mysqls max keylength would be exeeded otherwise
       
       Diffstat:
         M generators/reportable_migration/te… |      10 +++++-----
       
       1 file changed, 5 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/generators/reportable_migration/templates/migration.rb b/generators/reportable_migration/templates/migration.rb
       @@ -2,11 +2,11 @@ class CreateReportableCache < ActiveRecord::Migration
        
          def self.up
            create_table :reportable_cache, :force => true do |t|
       -      t.string   :model_name,       :null => false
       -      t.string   :report_name,      :null => false
       -      t.string   :grouping,         :null => false
       -      t.string   :aggregation,      :null => false
       -      t.string   :conditions,       :null => false
       +      t.string   :model_name,       :null => false, :limit => 100
       +      t.string   :report_name,      :null => false, :limit => 100
       +      t.string   :grouping,         :null => false, :limit => 10
       +      t.string   :aggregation,      :null => false, :limit => 10
       +      t.string   :conditions,       :null => false, :limit => 100
              t.float    :value,            :null => false, :default => 0
              t.datetime :reporting_period, :null => false