Class: UpgradeActivities

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/public_activity/migration_upgrade/templates/upgrade.rb

Overview

Migration responsible for creating a table with activities

Class Method Summary collapse

Class Method Details

.changeObject

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