mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
11 lines
298 B
Ruby
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
|