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