diff options
| author | Andrew Shalaev | 2012-04-15 15:57:52 +0600 |
|---|---|---|
| committer | Andrew Shalaev | 2012-04-15 15:57:52 +0600 |
| commit | 26ecbad8803b7489215c77221841f7b3fb77071d (patch) | |
| tree | 03111cf638b56d2c959a906da57ef95abaf205e9 /lib | |
| parent | 3388d26f11cfe35062e7d41784ffcbdabe0e456b (diff) | |
| download | inboxes-26ecbad8803b7489215c77221841f7b3fb77071d.tar.bz2 | |
fixed template migration install.rb
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/generators/inboxes/templates/install.rb | 2 |
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 |
