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