Sha256: 92686fc5bc815586ad45d0ef4a723b444c62ee1b5be9ab0545320870612b68e0

Contents?: true

Size: 726 Bytes

Versions: 12

Compression:

Stored size: 726 Bytes

Contents

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

    create_table :bridge_cache_enrollments do |t|
      t.integer :bridge_id, limit: 8
      t.integer :user_id, limit: 8
      t.string :state
      t.datetime :created_at
      t.datetime :updated_at
      t.datetime :completed_at
      t.integer :score
      t.datetime :end_at
      t.integer :course_template_id, limit: 8
      t.integer :attempts_count
      t.boolean :required
      t.string :external_id
      t.datetime :deleted_at
      t.integer :sources_count
      t.text :config
      t.datetime :expires_at
      t.boolean :inactive
      t.datetime :renew_by
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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