Class: CreateActiveConnectActiveConnectData

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/active_connect/templates/create_active_connect_active_connect_data.rb

Overview

lib/generators/active_connect/templates/create_active_connect_data.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/active_connect/templates/create_active_connect_active_connect_data.rb', line 5

def change
  create_table :active_connect_active_connect_data do |t|
    t.references :connectable, polymorphic: true, index: true
    t.json :data
    t.datetime :run_at
    t.integer :status
    t.string :service
    t.timestamps
  end
end