Sha256: a30ce60dfdd08b658980ee3ad298a2213dd11ad9ce72b608c04a6bea092a0046

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

class CreateStates < ActiveRecord::Migration
  def self.up
    create_table :states do |t|
      t.string :name
      t.string :official_name
      t.string :description
      t.string :iso_3166_2_alpha_code
      t.string :fips_5_2_numeric_code
      t.string :fips_5_2_alpha_code

      t.timestamps
    end
  end

  def self.down
    drop_table :states
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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