"Fossies" - the Fresh Open Source Software Archive

Member "redmine-4.0.4/db/migrate/014_add_queries_permissions.rb" (10 Jun 2019, 438 Bytes) of package /linux/www/redmine-4.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "014_add_queries_permissions.rb": 3.4.7_vs_4.0.0.

    1 class AddQueriesPermissions < ActiveRecord::Migration[4.2]
    2   # model removed
    3   class Permission < ActiveRecord::Base; end
    4 
    5   def self.up
    6     Permission.create :controller => "projects", :action => "add_query", :description => "button_create", :sort => 600, :is_public => false, :mail_option => 0, :mail_enabled => 0
    7   end
    8 
    9   def self.down
   10     Permission.where("controller=? and action=?", 'projects', 'add_query').first.destroy
   11   end
   12 end