Class: Yinx::SQL::Json
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- Yinx::SQL::Json
- Defined in:
- lib/yinx_sql.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
54 55 56 |
# File 'lib/yinx_sql.rb', line 54 def down drop_table :json_batched end |
#up ⇒ Object
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 |