Sha256: 66add1040d62ea6756a43aa94b03ef232e9077c87234cc4049b74d6666f02fb4

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

class CreateEcmStaffPositions < ActiveRecord::Migration[4.2]
  def change
    create_table :ecm_staff_positions do |t|
      t.string :name
      t.text :description

      # acts as markup
      t.string :markup_language

      # awesome nested set
      t.references :parent
      t.integer :lft
      t.integer :rgt
      t.integer :depth

      # friendly id
      t.string :slug

      t.timestamps
    end
    add_index :ecm_staff_positions, :parent_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_staff2-3.1.1 db/migrate/003_create_ecm_staff_positions.rb
ecm_staff2-3.1.0 db/migrate/003_create_ecm_staff_positions.rb
ecm_staff2-3.0.2 db/migrate/003_create_ecm_staff_positions.rb
ecm_staff2-3.0.1 db/migrate/003_create_ecm_staff_positions.rb
ecm_staff2-3.0.0 db/migrate/003_create_ecm_staff_positions.rb