Class: UpgradeDiscussibleInboxes

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/inboxes/templates/upgrade_discussible.rb

Class Method Summary collapse

Class Method Details

.changeObject



2
3
4
# File 'lib/generators/inboxes/templates/upgrade_discussible.rb', line 2

def self.change
  add_column :discussions, :discussible_id, :integer
end

.downObject



6
7
8
# File 'lib/generators/inboxes/templates/upgrade_discussible.rb', line 6

def self.down
  remove_column :discussions, :discussible_id
end