Sha256: 095c3d9a5d91e0ac1478cb172aa7399f909c7c0604010ea6cbb655849c94a315

Contents?: true

Size: 428 Bytes

Versions: 142

Compression:

Stored size: 428 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

142 entries across 142 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_terms.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_terms.rb