Permalink
Browse files

Renamed internal descriiption to short description, and placed on the…

… sidebar display of campaigns
  • Loading branch information...
1 parent d31f147 commit fb8d7f7faf87b3153280f4d500302a30807ea51b @konklone konklone committed Jul 14, 2009
@@ -8,11 +8,11 @@
<%= f.text_field :url, :class => 'text' %>
</li>
<li>
- <label for="campaign[private_description]">Internal Description</label>
- <%= f.text_area :private_description, :class => 'textarea', :cols => 32, :rows => 5 %>
+ <label for="campaign[short_description]">Short Description</label>
+ <%= f.text_area :short_description, :class => 'textarea', :cols => 32, :rows => 5 %>
</li>
<li>
- <label for="campaign[description]">External Description</label>
+ <label for="campaign[description]">Description</label>
<%= f.text_area :description, :class => 'textarea', :cols => 32, :rows => 5 %>
</li>
<li>
@@ -16,7 +16,7 @@
<%= link_to h(campaign.name), edit_admin_campaign_path(campaign) %>
</h3>
<p>
- <%= h campaign.private_description %>
+ <%= h campaign.short_description %>
</p>
</div>
@@ -14,7 +14,7 @@
<div class="clear"></div>
</div>
<p>
- <%= simple_format campaign.description %>
+ <%= simple_format campaign.short_description %>
</p>
</div>
<div class="taskDetail">
@@ -0,0 +1,9 @@
+class RenameInternalDescriptionToShortDescriptionOnCampaign < ActiveRecord::Migration
+ def self.up
+ rename_column :campaigns, :private_description, :short_description
+ end
+
+ def self.down
+ rename_column :campaigns, :short_description, :private_description
+ end
+end
View
@@ -9,18 +9,18 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 13) do
+ActiveRecord::Schema.define(:version => 14) do
create_table "campaigns", :force => true do |t|
t.string "name"
t.string "keyword"
t.string "url"
t.text "instructions"
t.text "description"
- t.text "private_description"
+ t.text "short_description"
t.text "template"
t.integer "points"
- t.integer "runs", :default => 0
+ t.integer "runs", :default => 0
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_runs"

0 comments on commit fb8d7f7

Please sign in to comment.