Sha256: f79f2d61f43487c457ba1f242327affca09cda515d8d0308f829a63500104331

Contents?: true

Size: 223 Bytes

Versions: 2

Compression:

Stored size: 223 Bytes

Contents

class CreateCities < ActiveRecord::Migration
  def change
    create_table :cities do |t|
      t.string :name
      t.references :country

      t.timestamps
    end
    add_index :cities, :country_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynamic_controller-0.0.4 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.2 spec/dummy/db/migrate/20120907230842_create_cities.rb