Sha256: cedd5e99cbd903e4f680f5726ac334528581ab43f2c7a3b7517175328c6e1fb3

Contents?: true

Size: 396 Bytes

Versions: 13

Compression:

Stored size: 396 Bytes

Contents

class CreateSsnValidatorTables < ActiveRecord::Migration
  
  def self.up
    create_table :ssn_high_group_codes do |t|
      t.date      :as_of
      t.string    :area
      t.string    :group
      t.timestamps
    end
    
    add_index :ssn_high_group_codes, [:area]
    add_index :ssn_high_group_codes, [:area, :as_of]
  end
  
  def self.down
    drop_table :ssn_high_group_codes
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
kevintyll-ssn_validator-0.1.1 generators/ssn_validator_migration/templates/migration.rb
kevintyll-ssn_validator-0.1.2 generators/ssn_validator_migration/templates/migration.rb
kevintyll-ssn_validator-1.0.0 generators/ssn_validator_migration/templates/migration.rb
kevintyll-ssn_validator-1.0.1 generators/ssn_validator_migration/templates/migration.rb
kevintyll-ssn_validator-1.0.2 generators/ssn_validator_migration/templates/migration.rb
kevintyll-ssn_validator-1.0.3 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.11 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.10 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.9 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.8 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.7 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.6 generators/ssn_validator_migration/templates/migration.rb
ssn_validator-1.0.4 generators/ssn_validator_migration/templates/migration.rb