Sha256: 1841bab6f445a8bb145f1eff6a6ca2deae86ea1ed32a2d7058dcca2d0533baa9

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

class CreateShopperCountries < ActiveRecord::Migration[5.0]
  def change
    create_table :shopper_countries do |t|
      t.string :name, null: false
      t.string :code, null: false
      t.timestamps
    end

    add_index :shopper_countries, :name, unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 db/migrate/20170126000000_create_shopper_countries.rb