Sha256: ecbf87d63a9ec268c6ad4d7708eabef27d481f3e9176b6abd25b98cd52d549b8

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 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.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

10 entries across 10 versions & 1 rubygems

Version Path
canvas_sync-0.2.2 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.2.1 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.2.0 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.8 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.7 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.5 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.4 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.3 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.2 lib/canvas_sync/generators/templates/create_sections.rb
canvas_sync-0.1.1 lib/canvas_sync/generators/templates/create_sections.rb