Sha256: 1acb9953723b15c4eac7050d305f3a3611a4e5190eac6b3a08c727ca0c3ace3a

Contents?: true

Size: 806 Bytes

Versions: 8

Compression:

Stored size: 806 Bytes

Contents

class CreateOfacSdns < ActiveRecord::Migration
  
  def self.up
    create_table :ofac_sdns do |t|
      t.text      :name
      t.string    :sdn_type
      t.string    :program
      t.string    :title
      t.string    :vessel_call_sign
      t.string    :vessel_type
      t.string    :vessel_tonnage
      t.string    :gross_registered_tonnage
      t.string    :vessel_flag
      t.string    :vessel_owner
      t.text      :remarks
      t.text      :address
      t.string    :city
      t.string    :country
      t.string    :address_remarks
      t.string    :alternate_identity_type
      t.text      :alternate_identity_name
      t.string    :alternate_identity_remarks
      t.timestamps
    end
    add_index :ofac_sdns, :sdn_type
  end
  
  def self.down
    drop_table :ofac_sdns
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ofac-2.0.4 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-2.0.3 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-2.0.2 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-2.0.1 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-2.0.0 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-1.3.2 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-1.3.1 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
ofac-1.3.0 lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb