Sha256: f4655cfdd8b8f020947056698299e65bfc83f8367c85d20176d01383832675b8
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
<%= autogenerated_migration_warning %> class CreateCourses < ActiveRecord::Migration[5.1] def change create_table :courses do |t| t.bigint :canvas_id, null: false t.string :sis_id t.string :course_code t.string :name t.string :workflow_state t.integer :canvas_account_id t.integer :canvas_term_id t.datetime :start_at t.datetime :end_at t.timestamps end add_index :courses, :canvas_id, unique: true 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_courses.rb |
canvas_sync-0.10.0 | lib/canvas_sync/generators/templates/migrations/create_courses.rb |