|
|
@ -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 => 20160830090214) 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
|
|
|
@ -157,13 +157,13 @@ ActiveRecord::Schema.define(:version => 20160830090214) 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 => 20160830090214) 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"
|
|
|
|