Create new transaction log table to track user conversions
This commit is contained in:
14
db/migrate/20140204233337_create_transaction_log_items.rb
Normal file
14
db/migrate/20140204233337_create_transaction_log_items.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateTransactionLogItems < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :transaction_log_items do |t|
|
||||
t.string :category
|
||||
t.integer :user_id
|
||||
t.text :data
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :transaction_log_items, :user_id
|
||||
add_index :transaction_log_items, :created_at
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user