1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Add migration version

This commit is contained in:
Jose Galisteo 2017-05-04 11:01:36 +02:00
parent 7f3764ea10
commit bbe6743263
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# This migration adds the optional `object_changes` column, in which PaperTrail
# will store the `changes` diff for each update event. See the readme for
# details.
class AddObjectChangesToVersions < ActiveRecord::Migration
class AddObjectChangesToVersions < ActiveRecord::Migration<%= migration_version %>
# The largest text column available in all supported RDBMS.
# See `create_versions.rb` for details.
TEXT_BYTES = 1_073_741_823

View file

@ -1,6 +1,6 @@
# This migration and CreateVersionAssociations provide the necessary
# schema for tracking associations.
class AddTransactionIdColumnToVersions < ActiveRecord::Migration
class AddTransactionIdColumnToVersions < ActiveRecord::Migration<%= migration_version %>
def self.up
add_column :versions, :transaction_id, :integer
add_index :versions, [:transaction_id]

View file

@ -1,6 +1,6 @@
# This migration and AddTransactionIdColumnToVersions provide the necessary
# schema for tracking associations.
class CreateVersionAssociations < ActiveRecord::Migration
class CreateVersionAssociations < ActiveRecord::Migration<%= migration_version %>
def self.up
create_table :version_associations do |t|
t.integer :version_id