Sha256: eafe06596b0588052b2b2c44218d082fe45010522a7f5bbefc60086e0503a90e

Contents?: true

Size: 252 Bytes

Versions: 48

Compression:

Stored size: 252 Bytes

Contents

class CreateCities < ActiveRecord::Migration
  def self.up
    create_table :cities do |t|
      t.string :name
      t.integer :population
      t.integer :country_id

      t.timestamps
    end
  end

  def self.down
    drop_table :cities
  end
end

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
netzke-basepack-0.3.0 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.4.1 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.3.8 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.3.7 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.4.0 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.3.9.1 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.3.9 test/app_root/db/migrate/20081223025732_create_cities.rb
netzke-basepack-0.4.2 test/app_root/db/migrate/20081223025732_create_cities.rb