Sha256: 283fc7966c1cc072ea7d21340d351c2205e0126d271ff590fe73e8a51d8c68ad

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

class CreateSisCoreLookups < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_lookups do |t|
      t.string :code, null: false
      t.string :name
      t.string :description
      t.string :type, null: false

      t.timestamps
    end

    add_index :sis_core_lookups, %i[name type], unique: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.19 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.18 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.17 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.16 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.15 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.14 db/migrate/20200105061717_create_sis_core_lookups.rb
sis_core-1.0.13 db/migrate/20200105061717_create_sis_core_lookups.rb