Sha256: 3112fa8099acdcac53ee8ed13d9d7903010ab837e4d57b1fd289495dbb7850e2

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

class CreateBridgeCacheCourseTemplates < ActiveRecord::Migration[5.0]
  def change
    return unless BridgeCache.use_internal_database

    create_table :bridge_cache_course_templates do |t|
      t.integer :bridge_id, limit: 8
      t.string :title
      t.integer :estimated_time
      t.integer :user_id, limit: 8
      t.datetime :created_at
      t.datetime :updated_at
      t.integer :passing_threshold
      t.datetime :published_at
      t.integer :default_days_until_due
      t.boolean :has_unpublished_changes
      t.boolean :has_certificate
      t.string :external_id
      t.string :draft_external_id
      t.integer :external_status
      t.integer :course_type
      t.integer :enrollments_count
      t.integer :domain_id, limit: 8
      t.datetime :deleted_at
      t.integer :attachments_count
      t.integer :sub_account_id, limit: 8
      t.boolean :open_book
      t.string :description
      t.integer :third_party_course_id, limit: 8
      t.integer :external_course_id
      t.boolean :force_tinymce
      t.integer :quizzes_count
      t.string :external_status_message
      t.boolean :manual_estimated_time
      t.boolean :force_tinymce_importer_version
      t.boolean :show_correct_response
      t.integer :max_quiz_attempts
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bridge_cache-0.4.7 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.6 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.5 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.4 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.3 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.2 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.4.1 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.3.24 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.3.23 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.3.22 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.3.21 db/migrate/20170518211817_create_bridge_cache_course_templates.rb
bridge_cache-0.3.20 db/migrate/20170518211817_create_bridge_cache_course_templates.rb