Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e5461214a9
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.472 kb
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
Jump to Line
Something went wrong with that request. Please try again.