Sha256: 8acdaf0bf510dc5a2329d662ee4aa39a651aa76aa1277a42be2eb5715b8a7301

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

class CategoriesWithJsonbMetadata < ActiveRecord::Migration[5.0]
  def change
    remove_column :cas_categories, :metadata, :string, default: "{}"
    add_column :cas_categories, :metadata, :jsonb, default: {}
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170801171952_categories_with_jsonb_metadata.rb
cas-cms-1.0.0.alpha1 db/migrate/20170801171952_categories_with_jsonb_metadata.rb
cas-cms-0.1.3 db/migrate/20170801171952_categories_with_jsonb_metadata.rb
cas-cms-0.1.2 db/migrate/20170801171952_categories_with_jsonb_metadata.rb
cas-cms-0.1.1 db/migrate/20170801171952_categories_with_jsonb_metadata.rb
cas-cms-0.1.0 db/migrate/20170801171952_categories_with_jsonb_metadata.rb