Sha256: 58004a5dab7002afdc48adf4ec693f43f04c8b9af1a1485987419801cb284e97

Contents?: true

Size: 689 Bytes

Versions: 50

Compression:

Stored size: 689 Bytes

Contents

#
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


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 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.7 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.6 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.5 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.3 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.2 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.1 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.3.0 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.2.4 spec/dummy/db/migrate/20171107213207_create_sections.rb
canvas_sync-0.2.3 spec/dummy/db/migrate/20171107213207_create_sections.rb