Sha256: 1e9ee8b47fab51a6196cb39939a531a7e5dcb0e9fc8195cc8a0cb2cbe011e4b5

Contents?: true

Size: 524 Bytes

Versions: 50

Compression:

Stored size: 524 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateSections < ActiveRecord::Migration[5.1]
  def change
    create_table :sections do |t|
      t.bigint :canvas_section_id, null: false
      t.string :sis_id
      t.bigint :canvas_course_id
      t.bigint :canvas_nonxlist_course_id
      t.string :name
      t.string :status
      t.datetime :start_date
      t.datetime :end_date

      t.timestamps
    end

    add_index :sections, :canvas_section_id, unique: true
    add_index :sections, :canvas_course_id
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.9.3 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.9.2 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.9.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.9.0 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.8.4 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.8.3 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.8.2 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.8.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.8.0 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.7.3 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.7.2 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.7.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.7.0 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.6.4 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.6.3 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.6.2 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.6.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.6.0 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.5.4 lib/canvas_sync/generators/templates/models/create_sections.rb