Sha256: f7b5091c6090eeafd54c25efb8a40508494da29643ee99e7f975bb7d7d475368
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
class CreatePreferences < ActiveRecord::Migration def change create_table :preferences do |t| t.string :name, :null => false t.references :owner, :polymorphic => true, :null => false t.references :group, :polymorphic => true t.string :value t.timestamps end add_index :preferences, [:owner_id, :owner_type, :name, :group_id, :group_type], :unique => true, :name => 'index_preferences_on_owner_and_name_and_preference' end end
Version data entries
4 entries across 4 versions & 2 rubygems