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

12 lines
298 B
Ruby
Raw Permalink Normal View History

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