Permalink
Browse files

Increased length of versions :event column

  • Loading branch information...
1 parent aa69a66 commit e27dcc997967e16372765afe813270824f1c5fbc @ndbroadbent ndbroadbent committed May 28, 2012
Showing with 13 additions and 4 deletions.
  1. +9 −0 db/migrate/20120528102124_increase_length_of_version_events.rb
  2. +4 −4 db/schema.rb
@@ -0,0 +1,9 @@
+class IncreaseLengthOfVersionEvents < ActiveRecord::Migration
+ def up
+ change_column :versions, :event, :string, :limit => 512
+ end
+
+ def down
+ change_column :versions, :event, :string, :limit => 255
+ end
+end
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120510025219) do
+ActiveRecord::Schema.define(:version => 20120528102124) do
create_table "account_contacts", :force => true do |t|
t.integer "account_id"
@@ -407,9 +407,9 @@
add_index "users", ["username", "deleted_at"], :name => "index_users_on_username_and_deleted_at", :unique => true
create_table "versions", :force => true do |t|
- t.string "item_type", :null => false
- t.integer "item_id", :null => false
- t.string "event", :null => false
+ t.string "item_type", :null => false
+ t.integer "item_id", :null => false
+ t.string "event", :limit => 512, :null => false
t.string "whodunnit"
t.text "object"
t.datetime "created_at"

0 comments on commit e27dcc9

Please sign in to comment.