Sha256: 1a923585b8dabd701b7622e79753b42090859b16d563f5a4d33da7dc1b2245c6
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
class DynamicAttributesMigration < ActiveRecord::Migration def self.up create_table :dynamic_attributes do |t| t.integer :dynamicable_id t.string :dynamicable_type t.string :name t.text :value t.timestamps end add_index :dynamic_attributes, [:dynamicable_id, :dynamicable_type, :name], :unique => true, :name => 'da_pk' end def self.down remove_index 'da_pk' drop_table :dynamic_attributes end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_solr_reloaded-1.6.0 | generators/dynamic_attributes_migration/templates/migration.rb |