|
|
@ -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 => 20160907061917) do
|
|
|
|
ActiveRecord::Schema.define(:version => 20160907080621) 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
|
|
|
@ -56,10 +56,10 @@ ActiveRecord::Schema.define(:version => 20160907061917) do
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "applied_id"
|
|
|
|
t.integer "applied_id"
|
|
|
|
t.string "applied_type"
|
|
|
|
t.string "applied_type"
|
|
|
|
t.integer "viewed", :default => 0
|
|
|
|
t.integer "viewed"
|
|
|
|
t.integer "status", :default => 0
|
|
|
|
t.integer "status"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.string "name"
|
|
|
|
t.string "name"
|
|
|
|
t.integer "applied_user_id"
|
|
|
|
t.integer "applied_user_id"
|
|
|
|
t.integer "role"
|
|
|
|
t.integer "role"
|
|
|
@ -157,13 +157,13 @@ ActiveRecord::Schema.define(:version => 20160907061917) do
|
|
|
|
create_table "attachments", :force => true do |t|
|
|
|
|
create_table "attachments", :force => true do |t|
|
|
|
|
t.integer "container_id"
|
|
|
|
t.integer "container_id"
|
|
|
|
t.string "container_type", :limit => 30
|
|
|
|
t.string "container_type", :limit => 30
|
|
|
|
t.string "filename", :default => "", :null => false
|
|
|
|
t.string "filename", :default => "", :null => false
|
|
|
|
t.string "disk_filename", :default => "", :null => false
|
|
|
|
t.string "disk_filename", :default => "", :null => false
|
|
|
|
t.integer "filesize", :default => 0, :null => false
|
|
|
|
t.integer "filesize", :default => 0, :null => false
|
|
|
|
t.string "content_type", :default => ""
|
|
|
|
t.string "content_type", :default => ""
|
|
|
|
t.string "digest", :limit => 40, :default => "", :null => false
|
|
|
|
t.string "digest", :limit => 40, :default => "", :null => false
|
|
|
|
t.integer "downloads", :default => 0, :null => false
|
|
|
|
t.integer "downloads", :default => 0, :null => false
|
|
|
|
t.integer "author_id", :default => 0, :null => false
|
|
|
|
t.integer "author_id", :default => 0, :null => false
|
|
|
|
t.datetime "created_on"
|
|
|
|
t.datetime "created_on"
|
|
|
|
t.string "description"
|
|
|
|
t.string "description"
|
|
|
|
t.string "disk_directory"
|
|
|
|
t.string "disk_directory"
|
|
|
@ -173,6 +173,7 @@ ActiveRecord::Schema.define(:version => 20160907061917) do
|
|
|
|
t.integer "quotes"
|
|
|
|
t.integer "quotes"
|
|
|
|
t.integer "is_publish", :default => 1
|
|
|
|
t.integer "is_publish", :default => 1
|
|
|
|
t.date "publish_time"
|
|
|
|
t.date "publish_time"
|
|
|
|
|
|
|
|
t.boolean "init_file", :default => false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
add_index "attachments", ["author_id"], :name => "index_attachments_on_author_id"
|
|
|
|
add_index "attachments", ["author_id"], :name => "index_attachments_on_author_id"
|
|
|
@ -310,14 +311,16 @@ ActiveRecord::Schema.define(:version => 20160907061917) do
|
|
|
|
add_index "changeset_parents", ["parent_id"], :name => "changeset_parents_parent_ids"
|
|
|
|
add_index "changeset_parents", ["parent_id"], :name => "changeset_parents_parent_ids"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "changesets", :force => true do |t|
|
|
|
|
create_table "changesets", :force => true do |t|
|
|
|
|
t.integer "repository_id", :null => false
|
|
|
|
t.integer "repository_id", :null => false
|
|
|
|
t.string "revision", :null => false
|
|
|
|
t.string "revision", :null => false
|
|
|
|
t.string "committer"
|
|
|
|
t.string "committer"
|
|
|
|
t.datetime "committed_on", :null => false
|
|
|
|
t.datetime "committed_on", :null => false
|
|
|
|
t.text "comments"
|
|
|
|
t.text "comments"
|
|
|
|
t.date "commit_date"
|
|
|
|
t.date "commit_date"
|
|
|
|
t.string "scmid"
|
|
|
|
t.string "scmid"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
|
|
|
t.integer "type", :default => 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
add_index "changesets", ["committed_on"], :name => "index_changesets_on_committed_on"
|
|
|
|
add_index "changesets", ["committed_on"], :name => "index_changesets_on_committed_on"
|
|
|
|