Sha256: 3c6345ae858b952dcc564ebb1eb3f4ea8c928bd662223ce5058be62081f19fe1
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
class AddCustomFieldsToNotifications < ActiveRecord::Migration def change if ::ActiveRecord::Base.connection.instance_values["config"][:adapter] == 'postgresql' execute('CREATE EXTENSION IF NOT EXISTS hstore;') add_column :notifications, :custom_fields, :hstore add_hstore_index :notifications, :custom_fields else add_column :notifications, :custom_fields, :text end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_tech_svcs-4.0.0 | db/migrate/20141013060204_add_custom_fields_to_notifications.rb |