Project

General

Profile

Download (281 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreateHostClass < ActiveRecord::Migration[4.2]
def up
rename_table :hosts_puppetclasses, :host_classes
add_column :host_classes, :id, :primary_key
end

def down
remove_column :host_classes, :id
rename_table :host_classes, :hosts_puppetclasses
end
end
(83-83/407)