Sha256: 105bf1fd0293cbab7b4dac6ab1209b8b8206a453bddd75e876f37e9737b62786
Contents?: true
Size: 721 Bytes
Versions: 7
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true class CreateStates < ActiveRecord::Migration[5.0] def up return if table_exists?(:us_geo_states) create_table :us_geo_states, id: false do |t| t.string :code, primary_key: true, null: false, limit: 2 t.string :name, null: false, limit: 30, index: {unique: true} t.string :fips, null: false, limit: 2, index: {unique: true} t.string :type, null: false, limit: 30 t.integer :region_id, null: true, limit: 1, index: true t.integer :division_id, null: true, limit: 1, index: true t.datetime :updated_at, null: false t.integer :status, null: false, default: 0, limit: 1 end end def down drop_table :us_geo_states end end
Version data entries
7 entries across 7 versions & 1 rubygems