Class: UpgradeActivities
- Inherits:
-
Object
- Object
- UpgradeActivities
- Defined in:
- lib/generators/public_activity/migration_upgrade/templates/upgrade.rb
Overview
Migration responsible for creating a table with activities
Class Method Summary collapse
-
.change ⇒ Object
Create table.
Class Method Details
.change ⇒ Object
Create table
6 7 8 9 10 |
# File 'lib/generators/public_activity/migration_upgrade/templates/upgrade.rb', line 6 def self.change change_table :activities do |t| t.belongs_to :recipient, :polymorphic => true end end |