Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding limit to strings in migration because mysqls max keylength would be exee…
Log
Files
Refs
README
---
commit c359b0eb474d71f094ab70340137e3060f448da7
parent ab9fe12fc9ff3f2a80790f9f39ecb0929a50bbb9
Author: Martin Kavalar <[email protected]>
Date: Tue, 20 Apr 2010 12:28:03 +0200
Adding limit to strings in migration because mysqls max keylength would be exee…
Diffstat:
M generators/reportable_migration/te… | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/generators/reportable_migration/templates/migration.rb b/generator…
@@ -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
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.