aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/054_allow_longer_comments.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/054_allow_longer_comments.rb b/db/migrate/054_allow_longer_comments.rb
new file mode 100644
index 000000000..35f2bee9c
--- /dev/null
+++ b/db/migrate/054_allow_longer_comments.rb
@@ -0,0 +1,9 @@
+class AllowLongerComments < ActiveRecord::Migration
+ def self.up
+ change_column :public_body_versions, :last_edit_comment, :text
+ end
+
+ def self.down
+ change_column :public_body_versions, :last_edit_comment, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index b2466841d..254607810 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 53) do
+ActiveRecord::Schema.define(:version => 54) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -111,7 +111,7 @@ ActiveRecord::Schema.define(:version => 53) do
t.text "request_email"
t.datetime "updated_at"
t.string "last_edit_editor"
- t.string "last_edit_comment"
+ t.text "last_edit_comment"
t.text "url_name"
end