> class CreateOrders < ActiveRecord::Migration[5.2] > def change > create_table :orders do |t| > t.string :status > end > end > end > > > class Order < ApplicationRecord > enum status: [:ok, :billing, :failed] > end
+1!!! -- Pudim -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/CAHpAuDEH12NRP6oE9gntbw_MHuhRfyxUKgdZFOPKaUboxywcwQ%40mail.gmail.com.