Sha256: 2dd3b652c224baa81a891ff2d6d227cbd68a4fc1410036c3273d556383653967
Contents?: true
Size: 345 Bytes
Versions: 9
Compression:
Stored size: 345 Bytes
Contents
class AddPublishedAsTo<%= publishing_class.pluralize %> < ActiveRecord::Migration # Add the new tables. def self.up add_column :<%= publishing_table_name %>, :published_as, :string, :limit => 16, :default => 'draft' end # Remove the tables. def self.down remove_column :<%= publishing_table_name %>, :published_as end end
Version data entries
9 entries across 9 versions & 1 rubygems