Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fbee8ab703
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.344 kb
class AddCopyrightAndLicenseToSource < ActiveRecord::Migration
def self.up
add_column :libraries, :copyright, :string
add_column :libraries, :license, :string
Library.find(:all).each do |l|
l.copyright = "&copy; #{l.name}."
l.save
end
end
def self.down
remove_column :libraries, :copyright
end
end
Jump to Line
Something went wrong with that request. Please try again.