diff options
| author | Alexey Poimtsev | 2012-01-17 15:42:46 +0400 |
|---|---|---|
| committer | Alexey Poimtsev | 2012-01-17 15:42:46 +0400 |
| commit | 6d444ac73749bd255892a888f3681c2d91405b53 (patch) | |
| tree | 5748e935d11c90a4385a86f3e72287005c9209b2 /lib | |
| parent | bbde9b7d0fc69d738634e47afd5925b1515cf9ee (diff) | |
| download | inboxes-6d444ac73749bd255892a888f3681c2d91405b53.tar.bz2 | |
Added ability to attach discussion to any other model (discussable)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/generators/inboxes/templates/install.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/generators/inboxes/templates/install.rb b/lib/generators/inboxes/templates/install.rb index 436ac98..e89c128 100644 --- a/lib/generators/inboxes/templates/install.rb +++ b/lib/generators/inboxes/templates/install.rb @@ -2,6 +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.timestamps end @@ -26,4 +27,4 @@ class InstallInboxes < ActiveRecord::Migration drop_table :discussions drop_table :messages end -end
\ No newline at end of file +end |
