Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
13
db/migrate/20130710182539_add_queries_visibility.rb
Normal file
13
db/migrate/20130710182539_add_queries_visibility.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class AddQueriesVisibility < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :queries, :visibility, :integer, :default => 0
|
||||
Query.where(:is_public => true).update_all(:visibility => 2)
|
||||
remove_column :queries, :is_public
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :queries, :is_public, :boolean, :default => true, :null => false
|
||||
Query.where('visibility <> ?', 2).update_all(:is_public => false)
|
||||
remove_column :queries, :visibility
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue