Sha256: f33645b03d5228374d1c35b68fa4e231999ba0144fac4ae813f8a7a64d6e065e
Contents?: true
Size: 701 Bytes
Versions: 17
Compression:
Stored size: 701 Bytes
Contents
class BigbluebuttonRailsTo005 < ActiveRecord::Migration def self.up add_column :bigbluebutton_rooms, :external, :boolean, :default => false add_column :bigbluebutton_rooms, :param, :string add_column :bigbluebutton_servers, :param, :string BigbluebuttonRoom.all.each do |r| r.update_attributes(:param => r.name.parameterize.downcase) unless r.name.nil? end BigbluebuttonServer.all.each do |s| s.update_attributes(:param => s.name.parameterize.downcase) unless s.name.nil? end end def self.down remove_column :bigbluebutton_rooms, :external remove_column :bigbluebutton_rooms, :param remove_column :bigbluebutton_servers, :param end end
Version data entries
17 entries across 17 versions & 1 rubygems