Aucune description http://j1x-huginn.herokuapp.com

20140605032822_add_guid_to_agents.rb 319B

    class AddGuidToAgents < ActiveRecord::Migration class Agent < ActiveRecord::Base; end def change add_column :agents, :guid, :string Agent.find_each do |agent| agent.update_attribute :guid, SecureRandom.hex end change_column_null :agents, :guid, false add_index :agents, :guid end end