解决附件无法更新问题
This commit is contained in:
parent
c9ebd5b9e9
commit
69ae7e3845
|
@ -0,0 +1,6 @@
|
|||
class AddPublishToAttachmentHistories < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :attachment_histories, :is_publish, :integer, :default => 1
|
||||
add_column :attachment_histories, :publish_time, :date
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20160220100507) do
|
||||
ActiveRecord::Schema.define(:version => 20160223073859) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
@ -99,6 +99,8 @@ ActiveRecord::Schema.define(:version => 20160220100507) do
|
|||
t.integer "quotes"
|
||||
t.integer "version"
|
||||
t.integer "attachment_id"
|
||||
t.integer "is_publish", :default => 1
|
||||
t.date "publish_time"
|
||||
end
|
||||
|
||||
create_table "attachments", :force => true do |t|
|
||||
|
@ -118,6 +120,8 @@ ActiveRecord::Schema.define(:version => 20160220100507) do
|
|||
t.integer "is_public", :default => 1
|
||||
t.integer "copy_from"
|
||||
t.integer "quotes"
|
||||
t.integer "is_publish", :default => 1
|
||||
t.date "publish_time"
|
||||
end
|
||||
|
||||
add_index "attachments", ["author_id"], :name => "index_attachments_on_author_id"
|
||||
|
@ -1373,7 +1377,6 @@ ActiveRecord::Schema.define(:version => 20160220100507) do
|
|||
t.integer "changeset_num", :default => 0
|
||||
t.integer "board_message_num", :default => 0
|
||||
t.integer "board_num", :default => 0
|
||||
t.integer "act_num", :default => 0
|
||||
t.integer "attach_num", :default => 0
|
||||
t.datetime "commit_time"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue