Sha256: 4462e8aa02a30ba37ecd7b1c97f775c60578f59454dd60aa8b7dc2ae13243d7b
Contents?: true
Size: 461 Bytes
Versions: 18
Compression:
Stored size: 461 Bytes
Contents
class <%= class_name %> < ActiveRecord::Migration # Upgrades schema from version 0.3 to version 0.4 def self.up add_column :comatose_pages, "filter_type", :string, :limit => 25, :default => "Textile" add_column :comatose_pages, "keywords", :string, :limit => 1000 end # Downgrades schema from version 0.4 to version 0.3 def self.down remove_column :comatose_pages, "filter_type" remove_column :comatose_pages, "keywords" end end
Version data entries
18 entries across 18 versions & 6 rubygems