Sha256: 87037be8bf25f03af4e0ca1eaca7cc7ece737c4028e856a12e0112657afeece6

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateAccounts < ActiveRecord::Migration[5.1]
  def change
    create_table :accounts do |t|
      t.bigint :canvas_id, null: false
      t.string :sis_id
      t.bigint :canvas_parent_account_id
      t.string :sis_parent_account_id
      t.string :name
      t.string :workflow_state

      t.timestamps
    end
    add_index :accounts, :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_accounts.rb
canvas_sync-0.10.0 lib/canvas_sync/generators/templates/migrations/create_accounts.rb