Sha256: de2495656e7854f80437035ad8997838925ea35dac51e0f95cc427ec5bb0a31e

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

class CreateBigbluebuttonRails < ActiveRecord::Migration

  def self.up
    create_table :bigbluebutton_servers do |t|
      t.string :name
      t.string :url
      t.string :salt
      t.string :version
      t.string :param
      t.timestamps
    end
    create_table :bigbluebutton_rooms do |t|
      t.integer :server_id
      t.integer :owner_id
      t.string :owner_type
      t.string :meetingid
      t.string :name
      t.string :attendee_password
      t.string :moderator_password
      t.string :welcome_msg
      t.string :logout_url
      t.string :voice_bridge
      t.string :dial_number
      t.integer :max_participants
      t.boolean :private, :default => false
      t.boolean :randomize_meetingid, :default => true
      t.boolean :external, :default => false
      t.string :param
      t.timestamps
    end
    add_index :bigbluebutton_rooms, :server_id
    add_index :bigbluebutton_rooms, :meetingid, :unique => true
    add_index :bigbluebutton_rooms, :voice_bridge, :unique => true
  end

  def self.down
    drop_table :bigbluebutton_rooms
    drop_table :bigbluebutton_servers
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.2.0 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-1.1.0 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-1.0.0 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-0.1.1 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-0.1.0 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-0.0.6 lib/generators/bigbluebutton_rails/templates/migration.rb
bigbluebutton_rails-0.0.5 lib/generators/bigbluebutton_rails/templates/migration.rb