Project

General

Profile

Download (277 Bytes) Statistics
| Branch: | Tag: | Revision:
class AddAncestryToHostgroup < ActiveRecord::Migration[4.2]
def up
add_column :hostgroups, :ancestry, :string, :limit => 255
add_index :hostgroups, :ancestry
end

def down
remove_index :hostgroups, :ancestry
remove_column :hostgroups, :ancestry
end
end
(65-65/386)