class CreateEvents
Public Instance Methods
change()
click to toggle source
# File lib/generators/tkh_events/create_or_update_migrations/templates/create_events.rb, line 2 def change create_table :events do |t| t.string :name t.text :description t.text :body t.datetime :starts_at t.boolean :published, default: false t.timestamps end end