Sha256: 124cd60fc5e07a8e1f80a804f298056bc4ee7886f712909e29b2c3094179075c
Contents?: true
Size: 427 Bytes
Versions: 26
Compression:
Stored size: 427 Bytes
Contents
# This migration and CreateVersionAssociations provide the necessary # schema for tracking associations. class AddTransactionIdColumnToVersions < ActiveRecord::Migration<%= migration_version %> def self.up add_column :versions, :transaction_id, :integer add_index :versions, [:transaction_id] end def self.down remove_index :versions, [:transaction_id] remove_column :versions, :transaction_id end end
Version data entries
26 entries across 26 versions & 3 rubygems