Sha256: 6daeefa22a00f9ac810ee0f36db36ea4573d51e9951aa377c13cebd6200e402f

Contents?: true

Size: 382 Bytes

Versions: 6

Compression:

Stored size: 382 Bytes

Contents

class CreateTaxonomyItems < ActiveRecord::Migration
  def change
    create_table :taxonomy_items do |t|
      t.string :name, null: false
      t.integer :parent_id
      t.integer :depth
      t.string :category
      t.string :taxonomy_code
      t.string :sub_category
      t.string :definition
      t.string :notes
    end
    add_index :taxonomy_items, :parent_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
provider_taxonomy-0.1.7 db/migrate/20160909180325_create_taxonomy_items.rb
provider_taxonomy-0.1.6 db/migrate/20160909180325_create_taxonomy_items.rb
provider_taxonomy-0.1.5 db/migrate/20160909180325_create_taxonomy_items.rb
provider_taxonomy-0.1.4 db/migrate/20160909180325_create_taxonomy_items.rb
provider_taxonomy-0.1.2 db/migrate/20160909180325_create_taxonomy_items.rb
provider_taxonomy-0.1.1 db/migrate/20160909180325_create_taxonomy_items.rb