README.rdoc in ploymorphic_wuid-0.4.3 vs README.rdoc in ploymorphic_wuid-0.5.0
- old
+ new
@@ -11,12 +11,15 @@
class CreateWuids < ActiveRecord::Migration
def self.up
create_table :wuids do |t|
t.integer :wuidable_id
t.string :wuidable_type
+ t.string :rand_token
t.integer :reference_to #optional
t.timestamps
end
+
+ add_index :wuids, :rand_token, :unique => true, :name => 'token_index'
end
def self.down
drop_table :wuids
end