Sha256: 0ab7bae619f16a4fd0d5adb88d56cd84b63121cca7bf2d0be7e50e4faf543a27

Contents?: true

Size: 212 Bytes

Versions: 10

Compression:

Stored size: 212 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

10 entries across 10 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.11 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.10 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.9 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.8 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.7 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.6 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.5 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.3 spec/dummy/db/migrate/20120907230842_create_cities.rb
dynamic_controller-0.0.1 spec/dummy/db/migrate/20120907230842_create_cities.rb