Sha256: 566a6589af029d15eb2c3ddc4ba9ec35ea4227b576895a56f32d17d27ff7292d
Contents?: true
Size: 477 Bytes
Versions: 17
Compression:
Stored size: 477 Bytes
Contents
class AddIntegerIdx < ActiveRecord::Migration def self.up # index float for nodes create_table :idx_nodes_integers, :options => Zena::Db.table_options do |t| t.integer 'node_id', :null => false t.string 'key' t.integer 'value' end add_index(:idx_nodes_integers, [:node_id, :key]) add_index(:idx_nodes_integers, :value) add_index(:idx_nodes_integers, :node_id) end def self.down drop_table 'idx_nodes_integers' end end
Version data entries
17 entries across 17 versions & 1 rubygems