Sha256: 0271f559a4e07122693bf44c12eb43cca6d5c1d49a81fde4942117974cc0ab7d
Contents?: true
Size: 452 Bytes
Versions: 11
Compression:
Stored size: 452 Bytes
Contents
class CreateMyAdminUserGroups < ActiveRecord::Migration def self.up create_table :my_admin_user_groups do |t| t.integer :user_id t.integer :group_id t.timestamps end add_index :my_admin_user_groups, [:user_id, :group_id], :unique => true, :name => 'my_admin_user_groups_index' end def self.down remove_index :my_admin_user_groups, "my_admin_user_groups_index" drop_table :my_admin_user_groups end end
Version data entries
11 entries across 11 versions & 1 rubygems