%= class_name.pluralize %> < ActiveRecord::Migration def self.up create_table :published_<%= class_name.pluralize.underscore %> do |t| <% class_name.singularize.constantize.columns.each do |column| next if column.name == "id" %>t.<