Sha256: 571545cb7fb53430e8e8cb0f1f991314f1d219d914c355fe41de09ef953f980e

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

class CreateContinents < ActiveRecord::Migration
  def self.up
    create_table :continents do |t|
      t.string :name, :null => false
      t.string :description, :null => true
      t.string :iso_3166_code, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :continents
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
welike-geography-0.0.3 generators/geography/templates/migrations/continents.rb
welike-geography-0.0.4 generators/geography/templates/migrations/continents.rb
welike-geography-0.0.5 generators/geography/templates/migrations/continents.rb
welike-geography-0.0.6 generators/geography/templates/migrations/continents.rb
welike-geography-0.0.8 generators/geography/templates/migrations/continents.rb