class Create<%= class_name.classify.pluralize %> < ActiveRecord::Migration def self.up create_table :<%= class_name.pluralize %> do |t| t.string :name t.datetime :start_at t.datetime :end_at <%- if options[:use_all_day] -%> t.boolean :all_day <%- end -%> t.timestamps end end def self.down drop_table :<%= class_name.pluralize %> end end