From ae764cd8e5f6838a3aa9b9a9d6ef8bbd84101dc9 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Fri, 4 Nov 2011 00:46:08 -0700 Subject: [PATCH] changed boilerplate length --- .../20111104074505_change_boilerplate_limits.rb | 11 +++++++++++ db/schema.rb | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20111104074505_change_boilerplate_limits.rb diff --git a/db/migrate/20111104074505_change_boilerplate_limits.rb b/db/migrate/20111104074505_change_boilerplate_limits.rb new file mode 100644 index 0000000..dc3932c --- /dev/null +++ b/db/migrate/20111104074505_change_boilerplate_limits.rb @@ -0,0 +1,11 @@ +class ChangeBoilerplateLimits < ActiveRecord::Migration + def self.up + change_column :contracts, :boilerplate, :text, :limit => nil + change_column :contract_templates, :boilerplate, :text, :limit => nil + end + + def self.down + change_column :contracts, :boilerplate, :text, :limit => 255 + change_column :contract_templates, :boilerplate, :text, :limit => 255 + end +end diff --git a/db/schema.rb b/db/schema.rb index da615b5..290b508 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,17 +9,17 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111104074044) do +ActiveRecord::Schema.define(:version => 20111104074505) do create_table "contract_templates", :force => true do |t| t.string "name" - t.text "boilerplate", :limit => 255 + t.text "boilerplate" t.datetime "created_at" t.datetime "updated_at" end create_table "contracts", :force => true do |t| - t.text "boilerplate", :limit => 255 + t.text "boilerplate" t.binary "signature" t.string "signinghash" t.datetime "datesigned"