1
2
3
4
5
6
7
8
9
10
11
|
class AddLicenseToArticle < ActiveRecord::Migration
def self.up
add_column :articles, :license_id, :integer
add_column :article_versions, :license_id, :integer
end
def self.down
remove_column :articles, :license_id
remove_column :article_versions, :license_id
end
end
|