lib/rflow/configuration/migrations/20010101000002_create_components.rb in rflow-0.0.5 vs lib/rflow/configuration/migrations/20010101000002_create_components.rb in rflow-1.0.0a1

- old
+ new

@@ -4,16 +4,21 @@ t.string :uuid, :limit => 36, :primary => true t.string :name t.boolean :managed, :default => true t.text :specification t.text :options - + + # UUID version of belongs_to :shard + t.string :shard_uuid + t.timestamps end add_index :components, :uuid, :unique => true + add_index :components, :name, :unique => true + add_index :components, :shard_uuid end - + def self.down drop_table :components end end