mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Logging added for most models
This commit is contained in:
parent
09a816d5a8
commit
c3675c1b2a
46 changed files with 285 additions and 28 deletions
11
db/migrate/20150129093938_add_versions.rb
Normal file
11
db/migrate/20150129093938_add_versions.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class AddVersions < ActiveRecord::Migration
|
||||
def change
|
||||
if ActiveRecord::Base.connection.table_exists? 'versions'
|
||||
rename_table :versions, :depricated_versions
|
||||
end
|
||||
|
||||
create_table :versions do |t|
|
||||
t.text :depricated_table_but_somehow_paper_trail_tests_fails_without_it
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue