module Ricer::Plugin::Cvs
  class Permission < ActiveRecord::Base
    
    self.table_name = :cvs_repo_perms
    
    belongs_to :user, :class_name => 'Ricer::Irc::User'
    belongs_to :repo, :class_name => 'Ricer::Plugin::Cvs::Repo'
    
    def self.upgrade_1
      m = ActiveRecord::Migration.new
      m.create_table table_name do |t|
        t.integer :repo_id, :null => false
        t.integer :user_id, :null => false
      end
    end
    
    
  end
end
