Commit d18170694f438e181116bfc46b8cadec8109a049

Authored by Joenio Costa
Committed by Daniela Feitosa
1 parent f5922203

Change certifiers description type to 'text'

- This is necessary by certifiers list sended by FBES to be imported on
  Cirandas.net
db/migrate/20110228174632_change_certifier_description_to_text.rb 0 → 100644
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +class ChangeCertifierDescriptionToText < ActiveRecord::Migration
  2 + def self.up
  3 + change_table :certifiers do |t|
  4 + t.change :description, :text, :limit => nil
  5 + end
  6 + end
  7 +
  8 + def self.down
  9 + change_table :certifiers do |t|
  10 + t.change :description, :string
  11 + end
  12 + end
  13 +end
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 # 9 #
10 # It's strongly recommended to check this file into your version control system. 10 # It's strongly recommended to check this file into your version control system.
11 11
12 -ActiveRecord::Schema.define(:version => 20110222211802) do 12 +ActiveRecord::Schema.define(:version => 20110228174632) do
13 13
14 create_table "action_tracker", :force => true do |t| 14 create_table "action_tracker", :force => true do |t|
15 t.integer "user_id" 15 t.integer "user_id"
@@ -31,8 +31,8 @@ ActiveRecord::Schema.define(:version =&gt; 20110222211802) do @@ -31,8 +31,8 @@ ActiveRecord::Schema.define(:version =&gt; 20110222211802) do
31 t.integer "profile_id" 31 t.integer "profile_id"
32 end 32 end
33 33
  34 + add_index "action_tracker_notifications", ["action_tracker_id", "profile_id"], :name => "index_action_tracker_notifications_on_profile_id_and_action_tra", :unique => true
34 add_index "action_tracker_notifications", ["action_tracker_id"], :name => "index_action_tracker_notifications_on_action_tracker_id" 35 add_index "action_tracker_notifications", ["action_tracker_id"], :name => "index_action_tracker_notifications_on_action_tracker_id"
35 - add_index "action_tracker_notifications", ["profile_id", "action_tracker_id"], :name => "index_action_tracker_notifications_on_profile_id_and_action_tracker_id", :unique => true  
36 add_index "action_tracker_notifications", ["profile_id"], :name => "index_action_tracker_notifications_on_profile_id" 36 add_index "action_tracker_notifications", ["profile_id"], :name => "index_action_tracker_notifications_on_profile_id"
37 37
38 create_table "article_versions", :force => true do |t| 38 create_table "article_versions", :force => true do |t|
@@ -179,7 +179,7 @@ ActiveRecord::Schema.define(:version =&gt; 20110222211802) do @@ -179,7 +179,7 @@ ActiveRecord::Schema.define(:version =&gt; 20110222211802) do
179 179
180 create_table "certifiers", :force => true do |t| 180 create_table "certifiers", :force => true do |t|
181 t.string "name", :null => false 181 t.string "name", :null => false
182 - t.string "description" 182 + t.text "description"
183 t.string "link" 183 t.string "link"
184 t.integer "environment_id" 184 t.integer "environment_id"
185 t.datetime "created_at" 185 t.datetime "created_at"