Sha256: d45a6cd6a134197ac9d0adfdd3363ea8f43af20f4ae1e345d867c6cd203cb7ef

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

class BigbluebuttonRailsTo140 < ActiveRecord::Migration
  def self.up
    add_column :bigbluebutton_recordings, :description, :string
    add_column :bigbluebutton_recordings, :meeting_id, :integer

    create_table :bigbluebutton_meetings do |t|
      t.integer :server_id
      t.integer :room_id
      t.string :meetingid
      t.string :name
      t.datetime :start_time
      t.boolean :running, :default => false
      t.boolean :record, :default => false
      t.integer :creator_id
      t.string :creator_name
      t.timestamps
    end
    add_index :bigbluebutton_meetings, [:meetingid, :start_time], :unique => true

    create_table :bigbluebutton_room_options do |t|
      t.integer :room_id
      t.string :default_layout
      t.boolean :presenter_share_only
      t.boolean :auto_start_video
      t.boolean :auto_start_audio
      t.timestamps
    end
    add_index :bigbluebutton_room_options, :room_id
  end

  def self.down
    drop_table :bigbluebutton_meetings
    drop_table :bigbluebutton_room_options
    remove_column :bigbluebutton_recordings, :meeting_id
    remove_column :bigbluebutton_recordings, :description
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-2.3.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-2.2.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-2.1.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-2.0.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-1.4.0 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb
bigbluebutton_rails-1.4.0.beta1 lib/generators/bigbluebutton_rails/templates/migration_1_4_0.rb