]> git.openstreetmap.org Git - rails.git/blob - db/migrate/047_add_visible_to_diaries.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 047_add_visible_to_diaries.rb
1 # frozen_string_literal: true
2
3 class AddVisibleToDiaries < ActiveRecord::Migration[4.2]
4   def self.up
5     add_column :diary_entries, :visible, :boolean, :null => false, :default => true
6     add_column :diary_comments, :visible, :boolean, :null => false, :default => true
7   end
8
9   def self.down
10     remove_column :diary_comments, :visible
11     remove_column :diary_entries, :visible
12   end
13 end