Sha256: b24b3d9afe6b98cad05c59915212ea95520357a41ec832d884d73724d50f0582
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
<%= autogenerated_migration_warning %> class CreateSections < ActiveRecord::Migration[5.1] def change create_table :sections do |t| t.bigint :canvas_id, null: false t.string :sis_id t.bigint :canvas_course_id t.bigint :canvas_nonxlist_course_id t.string :name t.string :workflow_state t.datetime :start_at t.datetime :end_at t.timestamps end add_index :sections, :canvas_id, unique: true add_index :sections, :canvas_course_id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas_sync-0.10.2 | lib/canvas_sync/generators/templates/migrations/create_sections.rb |
canvas_sync-0.10.0 | lib/canvas_sync/generators/templates/migrations/create_sections.rb |