/** * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ /* eslint-disable */ import { mount } from '@cypress/vue2' type MountParams = Parameters; type OptionsParam = MountParams[1]; declare global { namespace Cypress { interface Chainable { mount: typeof mount; /** * Mock an initial state for component testing * * @param app App name of the initial state * @param key Key of the initial state * @param value The mocked value of the initial state */ mockInitialState: (app: string, key: string, value: any) => void /** * Unmock all initial states or one defined by app and key * * @param app app name of the initial state * @param key the key of the initial state */ unmockInitialState: (app?: string, key?: string) => void } } } >0.7-stable Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/db/migrate/030_add_projects_feeds_permissions.rb
blob: 29e31ab14824bd7403f4543ccbfcc40a00d688f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2]
  # model removed
  class Permission < ActiveRecord::Base; end

  def self.up
    Permission.create :controller => "projects", :action => "feeds", :description => "label_feed_plural", :sort => 132, :is_public => true, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.where(:controller => "projects", :action => "feeds").each {|p| p.destroy}
  end
end