wechat init
This commit is contained in:
parent
932b0923b1
commit
5f6a3cac04
|
@ -27,6 +27,8 @@
|
||||||
|
|
||||||
RedmineApp::Application.routes.draw do
|
RedmineApp::Application.routes.draw do
|
||||||
|
|
||||||
|
resource :wechat, only: [:show, :create]
|
||||||
|
|
||||||
mount Mobile::API => '/api'
|
mount Mobile::API => '/api'
|
||||||
|
|
||||||
# Enable Grack support
|
# Enable Grack support
|
||||||
|
|
|
@ -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
|
10
db/schema.rb
10
db/schema.rb
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# 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|
|
create_table "activities", :force => true do |t|
|
||||||
t.integer "act_id", :null => false
|
t.integer "act_id", :null => false
|
||||||
|
@ -1928,6 +1928,14 @@ ActiveRecord::Schema.define(:version => 20160115023749) do
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
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|
|
create_table "wiki_content_versions", :force => true do |t|
|
||||||
t.integer "wiki_content_id", :null => false
|
t.integer "wiki_content_id", :null => false
|
||||||
t.integer "page_id", :null => false
|
t.integer "page_id", :null => false
|
||||||
|
|
Loading…
Reference in New Issue