Sha256: 322c85cd5140e8094c2847b342f31ecaf3f173d7641f53b8d441b580166867d8
Contents?: true
Size: 1.51 KB
Versions: 10
Compression:
Stored size: 1.51 KB
Contents
class BigbluebuttonRailsTo130 < ActiveRecord::Migration def self.up create_table :bigbluebutton_recordings do |t| t.integer :server_id t.integer :room_id t.string :recordid t.string :meetingid t.string :name t.boolean :published, :default => false t.datetime :start_time t.datetime :end_time t.boolean :available, :default => true t.timestamps end add_index :bigbluebutton_recordings, :room_id add_index :bigbluebutton_recordings, :recordid, :unique => true create_table :bigbluebutton_metadata do |t| t.integer :owner_id t.string :owner_type t.string :name t.text :content t.timestamps end create_table :bigbluebutton_playback_formats do |t| t.integer :recording_id t.string :format_type t.string :url t.integer :length t.timestamps end change_table(:bigbluebutton_rooms) do |t| t.boolean :record, :default => false t.integer :duration, :default => 0 end remove_column :bigbluebutton_rooms, :randomize_meetingid end def self.down add_column :bigbluebutton_rooms, :randomize_meetingid, :boolean, :default => true change_table(:bigbluebutton_rooms) do |t| t.remove :record t.remove :duration end drop_table :bigbluebutton_playback_formats drop_table :bigbluebutton_metadata remove_index :bigbluebutton_recordings, :room_id remove_index :bigbluebutton_recordings, :recordid drop_table :bigbluebutton_recordings end end
Version data entries
10 entries across 10 versions & 1 rubygems