Class: Yinx::SQL::Json

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/yinx_sql.rb

Instance Method Summary collapse

Instance Method Details

#downObject



54
55
56
# File 'lib/yinx_sql.rb', line 54

def down
  drop_table :json_batched
end

#upObject



48
49
50
51
52
# File 'lib/yinx_sql.rb', line 48

def up
  create_table :json_batches do |t|
    t.jsonb :batch, default: '[]'
  end
end