class ActiveRecord::Migration
Public Instance Methods
domain_aware(table_name)
click to toggle source
# File lib/site_framework/active_record/migration.rb, line 2 def domain_aware(table_name) fail "'domain_aware' deprecated use 'site_aware' instead." end
site_aware(table_name)
click to toggle source
# File lib/site_framework/active_record/migration.rb, line 6 def site_aware(table_name) change_table table_name do |t| if SiteFramework::Engine.use_uuid t.uuid :site_id else t.integer :site_id end end add_index table_name, :site_id end