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.5.3 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.5.2 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.5.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.4.1 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.4.0 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.23 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.22 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.21 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.20 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.19 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.18 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.17 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.16 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.15 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.14 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.13 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.12 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.11 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.10 lib/canvas_sync/generators/templates/models/create_sections.rb
canvas_sync-0.3.9 lib/canvas_sync/generators/templates/models/create_sections.rb