diff options
| author | Kir Shatrov | 2012-04-24 22:37:34 -0700 | 
|---|---|---|
| committer | Kir Shatrov | 2012-04-24 22:37:34 -0700 | 
| commit | 18b9989c0e861337d42ebdf497deb36615e9e9a5 (patch) | |
| tree | 673bfd1048f8d3c9b97341a89e1fdcfbcbe03eff /lib | |
| parent | efa681c2f900ca401276af00e542153e6f5fd4d2 (diff) | |
| parent | c494098f0d4edb4bdc7f0d918e9ed8700cd9a25e (diff) | |
| download | inboxes-18b9989c0e861337d42ebdf497deb36615e9e9a5.tar.bz2 | |
Merge pull request #16 from isqad88/master
Fixed issue #12
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 | 
