From a9cafb2241bd00e8bb8bd84803d78c400eae3998 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Mon, 16 Mar 2015 15:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BADiscussDemo=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20150316032155_create_discuss_demos.rb | 9 ++++++ db/schema.rb | 29 +++++++++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 db/migrate/20150316032155_create_discuss_demos.rb diff --git a/db/migrate/20150316032155_create_discuss_demos.rb b/db/migrate/20150316032155_create_discuss_demos.rb new file mode 100644 index 000000000..af7a2a6ed --- /dev/null +++ b/db/migrate/20150316032155_create_discuss_demos.rb @@ -0,0 +1,9 @@ +class CreateDiscussDemos < ActiveRecord::Migration + def change + create_table :discuss_demos do |t| + t.string :title + t.text :body + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index bad1cf2ae..de6d84800 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20150305081132) do +ActiveRecord::Schema.define(:version => 20150316032155) do create_table "activities", :force => true do |t| t.integer "act_id", :null => false @@ -422,6 +422,13 @@ ActiveRecord::Schema.define(:version => 20150305081132) do add_index "custom_values", ["custom_field_id"], :name => "index_custom_values_on_custom_field_id" add_index "custom_values", ["customized_type", "customized_id"], :name => "custom_values_customized" + create_table "discuss_demos", :force => true do |t| + t.string "title" + t.text "body" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "documents", :force => true do |t| t.integer "project_id", :default => 0, :null => false t.integer "category_id", :default => 0, :null => false @@ -631,6 +638,16 @@ ActiveRecord::Schema.define(:version => 20150305081132) do add_index "journal_details", ["journal_id"], :name => "journal_details_journal_id" + create_table "journal_details_copy", :force => true do |t| + t.integer "journal_id", :default => 0, :null => false + t.string "property", :limit => 30, :default => "", :null => false + t.string "prop_key", :limit => 30, :default => "", :null => false + t.text "old_value" + t.text "value" + end + + add_index "journal_details_copy", ["journal_id"], :name => "journal_details_journal_id" + create_table "journal_replies", :id => false, :force => true do |t| t.integer "journal_id" t.integer "user_id" @@ -1041,12 +1058,12 @@ ActiveRecord::Schema.define(:version => 20150305081132) do end create_table "roles", :force => true do |t| - t.string "name", :limit => 30, :default => "", :null => false - t.integer "position", :default => 1 - t.boolean "assignable", :default => true - t.integer "builtin", :default => 0, :null => false + t.string "name", :limit => 90 + t.integer "position" + t.boolean "assignable" + t.integer "builtin" t.text "permissions" - t.string "issues_visibility", :limit => 30, :default => "default", :null => false + t.string "issues_visibility", :limit => 90 end create_table "schools", :force => true do |t|