aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Shalaev2012-04-15 15:57:52 +0600
committerAndrew Shalaev2012-04-15 15:57:52 +0600
commit26ecbad8803b7489215c77221841f7b3fb77071d (patch)
tree03111cf638b56d2c959a906da57ef95abaf205e9 /lib
parent3388d26f11cfe35062e7d41784ffcbdabe0e456b (diff)
downloadinboxes-26ecbad8803b7489215c77221841f7b3fb77071d.tar.bz2
fixed template migration install.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/generators/inboxes/templates/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/inboxes/templates/install.rb b/lib/generators/inboxes/templates/install.rb
index e89c128..472cd95 100644
--- a/lib/generators/inboxes/templates/install.rb
+++ b/lib/generators/inboxes/templates/install.rb
@@ -2,7 +2,7 @@ class InstallInboxes < ActiveRecord::Migration
def self.up
create_table :discussions do |t|
t.integer :messages_count, :default => 0 # counter cache
- t.references :discussable
+ t.references :discussable, :polymorphic => true
t.timestamps
end