Sha256: f0a37bad0a3b46a15a97558f76d5f2894d37ad54c85fadcba66f731b3630a33c
Contents?: true
Size: 522 Bytes
Versions: 31
Compression:
Stored size: 522 Bytes
Contents
class DropRailsAdminHistoriesTable < ActiveRecord::Migration def self.up drop_table :rails_admin_histories end def self.down create_table :rails_admin_histories do |t| t.text :message # title, name, or object_id t.string :username t.integer :item t.string :table t.integer :month, :limit => 2 t.integer :year, :limit => 5 t.timestamps end add_index(:rails_admin_histories, [:item, :table, :month, :year], :name => 'index_rails_admin_histories' ) end end
Version data entries
31 entries across 31 versions & 6 rubygems