diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-08-28 01:31:47 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2017-09-17 20:35:50 +0300 |
commit | 4c967903fed684dacb9d14ecbfc6f06158e3df5c (patch) | |
tree | cbbc64877a849d1fb355f86389a34cbacc3353fe /db | |
parent | 1d2394571c48a0da5c785a75e1870502c9adf55d (diff) |
Remove rails_admin_histories table
This was a leftover from rails_admin which was removed in #7440.
closes #7597
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170827222357_remove_rails_admin_histories.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/db/migrate/20170827222357_remove_rails_admin_histories.rb b/db/migrate/20170827222357_remove_rails_admin_histories.rb new file mode 100644 index 000000000..7c914cb8b --- /dev/null +++ b/db/migrate/20170827222357_remove_rails_admin_histories.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +class RemoveRailsAdminHistories < ActiveRecord::Migration[5.1] + def up + drop_table :rails_admin_histories + end + + def down + create_table :rails_admin_histories do |t| + t.text :message + t.string :username + t.integer :item + t.string :table + t.integer :month, limit: 2 + t.integer :year, limit: 8 + t.datetime :created_at, null: false + t.datetime :updated_at, null: false + end + + add_index :rails_admin_histories, %i[item table month year], name: :index_rails_admin_histories, + length: {table: 188} + end +end |