Sha256: dfca02bb388e0c70c2dc508ce3e22089f90a5ef81f3d3a3809a1e78df3780417

Contents?: true

Size: 305 Bytes

Versions: 5

Compression:

Stored size: 305 Bytes

Contents

class CreateCountries < ActiveRecord::Migration[5.1]
  def change
    create_table :countries do |t|
      t.string :iso_code, index: true, null: false, limit: 2
      t.string :name, limit: 64
      t.boolean :eu
    end

    add_index :countries, :name, name: :countries_name, type: :fulltext

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digital_heroes_startkit-0.1.1.4 lib/generators/project/db/migrate/30_create_countries.rb
digital_heroes_startkit-0.1.1.3 lib/generators/project/db/migrate/30_create_countries.rb
digital_heroes_startkit-0.1.1.2 lib/generators/project/db/migrate/30_create_countries.rb
digital_heroes_startkit-0.1.1.1 lib/generators/project/db/migrate/30_create_countries.rb
digital_heroes_startkit-0.1.1 lib/generators/project/db/migrate/30_create_countries.rb