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.3.8 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.7 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.6 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.5 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.3 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.3.2 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.3.1 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.3.0 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.2.4 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.2.3 lib/canvas_sync/generators/templates/create_sections.rb