Sha256: 64c38b5b561ed39be78402bf741f820084aeb218b05aa56b28307fae3492d7bc
Contents?: true
Size: 493 Bytes
Versions: 11
Compression:
Stored size: 493 Bytes
Contents
class CreateEasyMLEventContexts < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change unless table_exists?(:easy_ml_event_contexts) create_table :easy_ml_event_contexts do |t| t.references :event, null: false, foreign_key: { to_table: :easy_ml_events } t.jsonb :context, null: false, default: {} t.string :format t.timestamps end add_index :easy_ml_event_contexts, :context, using: :gin end end end
Version data entries
11 entries across 11 versions & 1 rubygems