Skip to content

Commit

Permalink
Add default status to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwindt committed Feb 19, 2012
1 parent e43de3e commit 6df5323
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20120219002302_add_default_status_on_comments.rb
@@ -0,0 +1,6 @@
class AddDefaultStatusOnComments < ActiveRecord::Migration
def change
change_column :comments, :status, :string, :default => 'neutral'
end

end
4 changes: 2 additions & 2 deletions db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20111220211442) do
ActiveRecord::Schema.define(:version => 20120219002302) do

create_table "articles", :force => true do |t|
t.string "title"
Expand All @@ -38,7 +38,7 @@
t.string "author_email"
t.string "author_ip"
t.text "content"
t.string "status"
t.string "status", :default => "neutral"
t.datetime "created_at"
t.string "gravatar_hash"
end
Expand Down

0 comments on commit 6df5323

Please sign in to comment.