Sha256: fc6e43856c77cc4fb832bb821afc1f38f07bc0eb15559e74290dd9c0425ac18f
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
class CreateSojournEvents < ActiveRecord::Migration def change create_table :sojourn_events do |t| t.string :sojourner_uuid, limit: 36, null: false t.string :name t.column :properties, :jsonb t.references :user t.timestamp :created_at end add_index :sojourn_events, [:sojourner_uuid] add_index :sojourn_events, [:user_id] add_index :sojourn_events, [:created_at] add_index :sojourn_events, [:name] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sojourn-0.1.1 | lib/generators/sojourn/templates/create_sojourn_events.rb |
sojourn-0.1.0 | lib/generators/sojourn/templates/create_sojourn_events.rb |