Sha256: 6309913c5478680bc1cb004fd6f833cf59598bf46ad397578cf0c667a373545b
Contents?: true
Size: 427 Bytes
Versions: 34
Compression:
Stored size: 427 Bytes
Contents
class AddRoadmapPermission < ActiveRecord::Migration # model removed class Permission < ActiveRecord::Base; end def self.up Permission.create :controller => "projects", :action => "roadmap", :description => "label_roadmap", :sort => 107, :is_public => true, :mail_option => 0, :mail_enabled => 0 end def self.down Permission.where("controller=? and action=?", 'projects', 'roadmap').first.destroy end end
Version data entries
34 entries across 34 versions & 1 rubygems