Project

General

Profile

Download (194 Bytes) Statistics
| Branch: | Tag: | Revision:
class EnsureAllHostnamesAreLowercase < ActiveRecord::Migration
def up
execute "UPDATE hosts SET name=LOWER(name)"
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
(91-91/281)