Class: BigbluebuttonRailsTo130B

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

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/generators/bigbluebutton_rails/templates/migration_1_3_0_b.rb', line 10

def self.down
  # Can't undo
end

.upObject



3
4
5
6
7
8
# File 'lib/generators/bigbluebutton_rails/templates/migration_1_3_0_b.rb', line 3

def self.up
  # Generate a meetingID for every room
  BigbluebuttonRoom.all.each do |room|
    room.update_attributes(:meetingid => room.unique_meetingid)
  end
end