v1.0
This commit is contained in:
parent
0f43e98ef8
commit
d378468794
317 changed files with 11347 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration
|
||||
def self.up
|
||||
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
|
||||
|
||||
def self.down
|
||||
drop_table :rails_admin_histories
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue