Skip to content

Commit

Permalink
closes railsadminteam#625 Message column too small
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenezech committed Sep 1, 2011
1 parent f511a6b commit 8ba5841
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generators/rails_admin/templates/drop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.up

def self.down
create_table :rails_admin_histories do |t|
t.string :message # title, name, or object_id
t.text :message # title, name, or object_id
t.string :username
t.integer :item
t.string :table
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/rails_admin/templates/migration.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration
def self.up
create_table :rails_admin_histories do |t|
t.string :message # title, name, or object_id
t.text :message # title, name, or object_id
t.string :username
t.integer :item
t.string :table
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ChangeLengthForRailsAdminHistories < ActiveRecord::Migration
def up
change_column :rails_admin_histories, :message, :text
end

def down
change_column :rails_admin_histories, :message, :string
end
end

0 comments on commit 8ba5841

Please sign in to comment.