class CreateCities < ActiveRecord::Migration[5.0]
  def change
    create_table :cities do |t|
      t.string :slug, null: false
      t.string :name
      t.string :latitude, null: false
      t.string :longitude, null: false
      t.integer :zoom, null: false

      t.timestamps
    end
    add_index :cities, :slug

  end
end
