Sha256: fd379eee4a4850871f265f52039b6a9c2fa178b46eb376770a194abc4a6eda39
Contents?: true
Size: 153 Bytes
Versions: 1
Compression:
Stored size: 153 Bytes
Contents
class AddCategoryNameUniquenessConstraint < ActiveRecord::Migration def change add_index :categories, [:project_id, :name], unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_systeem-0.1.0 | test/dummy_app/db/migrate/20140312221151_add_category_name_uniqueness_constraint.rb |