Sha256: 2c381d38982e99ec98005b4d88f537e433c4a4e3e1e577e3ca5aabfc0e9354b3
Contents?: true
Size: 615 Bytes
Versions: 7
Compression:
Stored size: 615 Bytes
Contents
class CreateSolidusSubscriptionsSubscriptionEvents < ActiveRecord::Migration[5.2] def change create_table :solidus_subscriptions_subscription_events do |t| t.belongs_to( :subscription, null: false, foreign_key: { to_table: :solidus_subscriptions_subscriptions }, index: { name: :idx_solidus_subscription_events_on_subscription_id }, type: :integer, ) t.string :event_type, null: false if t.respond_to?(:jsonb) t.jsonb :details, null: false else t.json :details, null: false end t.timestamps end end end
Version data entries
7 entries across 7 versions & 1 rubygems