Commit d18170694f438e181116bfc46b8cadec8109a049
Committed by
Daniela Feitosa
1 parent
f5922203
Exists in
master
and in
22 other branches
Change certifiers description type to 'text'
- This is necessary by certifiers list sended by FBES to be imported on Cirandas.net
Showing
2 changed files
with
16 additions
and
3 deletions
Show diff stats
db/migrate/20110228174632_change_certifier_description_to_text.rb
0 → 100644
| ... | ... | @@ -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 | ... | ... |
db/schema.rb
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | # |
| 10 | 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 | 14 | create_table "action_tracker", :force => true do |t| |
| 15 | 15 | t.integer "user_id" |
| ... | ... | @@ -31,8 +31,8 @@ ActiveRecord::Schema.define(:version => 20110222211802) do |
| 31 | 31 | t.integer "profile_id" |
| 32 | 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 | 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 | 36 | add_index "action_tracker_notifications", ["profile_id"], :name => "index_action_tracker_notifications_on_profile_id" |
| 37 | 37 | |
| 38 | 38 | create_table "article_versions", :force => true do |t| |
| ... | ... | @@ -179,7 +179,7 @@ ActiveRecord::Schema.define(:version => 20110222211802) do |
| 179 | 179 | |
| 180 | 180 | create_table "certifiers", :force => true do |t| |
| 181 | 181 | t.string "name", :null => false |
| 182 | - t.string "description" | |
| 182 | + t.text "description" | |
| 183 | 183 | t.string "link" |
| 184 | 184 | t.integer "environment_id" |
| 185 | 185 | t.datetime "created_at" | ... | ... |