1
0
Fork 0
dokkan-data-rails/db/migrate/20151014121824_add_transaction_id_column_to_versions.rb

11 lines
298 B
Ruby

class AddTransactionIdColumnToVersions < ActiveRecord::Migration
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