OSDN Git Service

fix:pp link
[pettanr/pettanr.git] / db / migrate / 20120713230519_add_credit_data.rb
1 class AddCreditData < ActiveRecord::Migration
2   def up
3     add_column :resource_pictures, :classname, :string, :null => false, :limit => 50, :default => 'StandardLicense'
4     add_column :pictures, :classname, :string, :null => false, :limit => 50, :default => 'StandardLicense'
5   end
6
7   def down
8     remove__column :resource_pictures, :classname
9     remove__column :pictures, :classname
10   end
11 end