迁移自动生成文件
This commit is contained in:
parent
1c6f17936f
commit
b52f4f80c4
60
db/schema.rb
60
db/schema.rb
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20151020021234) do
|
||||
ActiveRecord::Schema.define(:version => 20151102090519) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
@ -144,6 +144,36 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.integer "open_anonymous_evaluation", :default => 1
|
||||
end
|
||||
|
||||
create_table "blog_comments", :force => true do |t|
|
||||
t.integer "blog_id", :null => false
|
||||
t.integer "parent_id"
|
||||
t.string "title", :default => "", :null => false
|
||||
t.text "content"
|
||||
t.integer "author_id"
|
||||
t.integer "comments_count", :default => 0, :null => false
|
||||
t.integer "last_comment_id"
|
||||
t.datetime "created_on", :null => false
|
||||
t.datetime "updated_on", :null => false
|
||||
t.boolean "locked", :default => false
|
||||
t.integer "sticky", :default => 0
|
||||
t.integer "reply_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "blogs", :force => true do |t|
|
||||
t.string "name", :default => "", :null => false
|
||||
t.text "description"
|
||||
t.integer "position", :default => 1
|
||||
t.integer "article_count", :default => 0, :null => false
|
||||
t.integer "comments_count", :default => 0, :null => false
|
||||
t.integer "last_comments_id"
|
||||
t.integer "parent_id"
|
||||
t.integer "author_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "boards", :force => true do |t|
|
||||
t.integer "project_id", :null => false
|
||||
t.string "name", :default => "", :null => false
|
||||
|
@ -413,6 +443,7 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.integer "is_public", :limit => 1, :default => 1
|
||||
t.integer "inherit_members", :limit => 1, :default => 1
|
||||
t.integer "open_student", :default => 0
|
||||
t.integer "outline", :default => 0
|
||||
end
|
||||
|
||||
create_table "custom_fields", :force => true do |t|
|
||||
|
@ -621,12 +652,13 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.text "description"
|
||||
t.date "publish_time"
|
||||
t.date "end_time"
|
||||
t.integer "homework_type", :default => 1
|
||||
t.integer "homework_type", :default => 1
|
||||
t.string "late_penalty"
|
||||
t.integer "course_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "teacher_priority", :default => 1
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "teacher_priority", :default => 1
|
||||
t.integer "anonymous_comment", :default => 0
|
||||
end
|
||||
|
||||
create_table "homework_detail_manuals", :force => true do |t|
|
||||
|
@ -1006,11 +1038,21 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.integer "project_id"
|
||||
end
|
||||
|
||||
create_table "org_members", :force => true do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "organization_id"
|
||||
t.string "role"
|
||||
end
|
||||
|
||||
create_table "organizations", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "logo_link"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.text "description"
|
||||
t.integer "creator_id"
|
||||
t.integer "home_id"
|
||||
t.string "domain"
|
||||
t.boolean "is_public"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "phone_app_versions", :force => true do |t|
|
||||
|
@ -1155,6 +1197,7 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.string "enterprise_name"
|
||||
t.integer "organization_id"
|
||||
t.integer "project_new_type"
|
||||
t.integer "gpid"
|
||||
end
|
||||
|
||||
add_index "projects", ["lft"], :name => "index_projects_on_lft"
|
||||
|
@ -1571,6 +1614,7 @@ ActiveRecord::Schema.define(:version => 20151020021234) do
|
|||
t.string "identity_url"
|
||||
t.string "mail_notification", :default => "", :null => false
|
||||
t.string "salt", :limit => 64
|
||||
t.integer "gid"
|
||||
end
|
||||
|
||||
add_index "users", ["auth_source_id"], :name => "index_users_on_auth_source_id"
|
||||
|
|
Loading…
Reference in New Issue