mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Story #105839906 -- drop Version and log_legal_documents from legal_documents
This commit is contained in:
parent
07c2d58554
commit
c0960e9184
3 changed files with 47 additions and 1 deletions
12
db/migrate/20151117081204_drop_log_legal_documents.rb
Normal file
12
db/migrate/20151117081204_drop_log_legal_documents.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class DropLogLegalDocuments < ActiveRecord::Migration
|
||||
def up
|
||||
drop_table :log_legal_documents
|
||||
remove_column :legal_documents, :updated_at
|
||||
remove_column :legal_documents, :updator_str
|
||||
end
|
||||
|
||||
def down
|
||||
# removed concern Version, which removed LegalDocumentVersion
|
||||
fail ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue