Sha256: 858f400456fa99e743aefbcc34b18c71e850216d41434cf54362820341925f00

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

class CreateCorrectorBases < ActiveRecord::Migration
  def change
    create_table :corrector_bases do |t|
      t.string :type, limit: 6
      t.string :from, null: false
      t.string :to,   null: false
      t.string :scope
    end

    add_index :corrector_bases, [:scope, :from], unique: true
    add_index :corrector_bases, :type
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
corrector-0.1.0 db/migrate/20141014223624_create_corrector_bases.rb
corrector-0.0.3 db/migrate/20141014223624_create_corrector_bases.rb
corrector-0.0.2 db/migrate/20141014223624_create_corrector_bases.rb
corrector-0.0.1 db/migrate/20141014223624_create_corrector_bases.rb