wechat init

This commit is contained in:
guange 2016-01-16 11:54:59 +08:00
parent 932b0923b1
commit 5f6a3cac04
4 changed files with 22 additions and 1 deletions

View File

View File

@ -27,6 +27,8 @@
RedmineApp::Application.routes.draw do
resource :wechat, only: [:show, :create]
mount Mobile::API => '/api'
# Enable Grack support

View File

@ -0,0 +1,11 @@
class CreateWechatLogs < ActiveRecord::Migration
def change
create_table :wechat_logs do |t|
t.string :openid, null: false, index: true
t.text :request_raw
t.text :response_raw
t.text :session_raw
t.datetime :created_at, null: false
end
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20160115023749) do
ActiveRecord::Schema.define(:version => 20160116034925) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@ -1928,6 +1928,14 @@ ActiveRecord::Schema.define(:version => 20160115023749) do
t.datetime "updated_at", :null => false
end
create_table "wechat_logs", :force => true do |t|
t.string "openid", :null => false
t.text "request_raw"
t.text "response_raw"
t.text "session_raw"
t.datetime "created_at", :null => false
end
create_table "wiki_content_versions", :force => true do |t|
t.integer "wiki_content_id", :null => false
t.integer "page_id", :null => false