Sha256: bc598ed7cab7fde11cdaf93bf44a5e494b38937cdede5efef346f022ad2b66b3
Contents?: true
Size: 364 Bytes
Versions: 18
Compression:
Stored size: 364 Bytes
Contents
class AddInUrlToPages < ActiveRecord::Migration def self.up add_column 'constructor_pages_pages', :in_url, :boolean, default: true ConstructorPages::Page.reset_column_information ConstructorPages::Page.all.each do |p| p.in_url = true p.save end end def self.down remove_column 'constructor_pages_pages', :in_url end end
Version data entries
18 entries across 18 versions & 1 rubygems