Sha256: 36957bee3e611afb2e8c83f0d26a60a5a68969b3ea0a55329a9b8e58cb3ea0cf

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

class CreateStrainVariants < ActiveRecord::Migration
  def change
    create_table :strain_variants, id: :uuid do |t|
      t.string :name, null: false
      t.jsonb :schema, null: false

      t.timestamps null: false
    end
    add_index :strain_variants, :name, :unique => true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
strain-0.0.2 db/migrate/20151103060224_create_strain_variants.rb
strain-0.0.1 db/migrate/20151103060224_create_strain_variants.rb