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