Skip to content

Instantly share code, notes, and snippets.

@yetanothernguyen
Created November 10, 2011 05:06
Show Gist options
  • Save yetanothernguyen/1354162 to your computer and use it in GitHub Desktop.
Save yetanothernguyen/1354162 to your computer and use it in GitHub Desktop.
Transactions table for test
create_table "transactions", :id => false, :force => true do |t|
t.integer "id", :null => false
t.integer "user_id"
t.float "amount"
t.string "transactable_type"
t.integer "transactable_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "prize"
t.integer "contribution_point"
t.boolean "is_reserved", :default => false
t.integer "created_month", :limit => 1
t.string "remark"
t.string "action_desc"
t.datetime "deleted_at"
end
add_index "transactions", ["created_month"], :name => "index_transactions_on_created_month"
add_index "transactions", ["id"], :name => "idx"
add_index "transactions", ["transactable_id"], :name => "index_transactions_on_transactable_id"
add_index "transactions", ["user_id"], :name => "index_transactions_on_user_id"
create_table "transactions", :force => true do |t|
t.integer "user_id"
t.float "amount"
t.string "transactable_type"
t.integer "transactable_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "prize"
t.integer "contribution_point"
t.boolean "is_reserved", :default => false
t.integer "created_month", :limit => 1
t.string "remark"
t.string "action_desc"
t.datetime "deleted_at"
end
add_index "transactions", ["created_month"], :name => "index_transactions_on_created_month"
add_index "transactions", ["transactable_id"], :name => "index_transactions_on_transactable_id"
add_index "transactions", ["user_id"], :name => "index_transactions_on_user_id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment