Sha256: 3fa4b987e7e3b96a013e7d217b9f013884c24d885521f7a0d5c15a19d8aece5a

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateTerms < ActiveRecord::Migration[5.1]
  def change
    create_table :terms do |t|
      t.integer :canvas_id, null: false
      t.string :name
      t.datetime :start_at
      t.datetime :end_at
      t.string :workflow_state
      t.integer :grading_period_group_id
      t.string :sis_id

      t.timestamps
    end
    add_index :terms, :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_terms.rb
canvas_sync-0.10.0 lib/canvas_sync/generators/templates/migrations/create_terms.rb