Enable soft deletion of Proposal::Translations
This commit is contained in:
committed by
voodoorai2000
parent
fb4d4c6c5a
commit
2079706845
@@ -0,0 +1,6 @@
|
||||
class AddHiddenAtToProposalTranslations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :proposal_translations, :hidden_at, :datetime
|
||||
add_index :proposal_translations, :hidden_at
|
||||
end
|
||||
end
|
||||
@@ -1318,6 +1318,8 @@ ActiveRecord::Schema.define(version: 20190607160900) do
|
||||
t.text "description"
|
||||
t.text "summary"
|
||||
t.text "retired_explanation"
|
||||
t.datetime "hidden_at"
|
||||
t.index ["hidden_at"], name: "index_proposal_translations_on_hidden_at", using: :btree
|
||||
t.index ["locale"], name: "index_proposal_translations_on_locale", using: :btree
|
||||
t.index ["proposal_id"], name: "index_proposal_translations_on_proposal_id", using: :btree
|
||||
end
|
||||
|
||||
@@ -10,6 +10,7 @@ describe Proposal do
|
||||
it_behaves_like "map validations"
|
||||
it_behaves_like "globalizable", :proposal
|
||||
it_behaves_like "sanitizable"
|
||||
it_behaves_like "acts as paranoid", :proposal
|
||||
end
|
||||
|
||||
it "is valid" do
|
||||
|
||||
Reference in New Issue
Block a user