Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Add approved flag to talks
Browse files Browse the repository at this point in the history
  • Loading branch information
skalnik committed Mar 22, 2012
1 parent 1a70ebd commit f2bdb21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20120322034209_add_approved_to_talks.rb
@@ -0,0 +1,5 @@
class AddApprovedToTalks < ActiveRecord::Migration
def change
add_column :talks, :approved, :boolean, :default => false
end
end
7 changes: 4 additions & 3 deletions db/schema.rb
Expand Up @@ -11,16 +11,17 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20120322000043) do
ActiveRecord::Schema.define(:version => 20120322034209) do

create_table "talks", :force => true do |t|
t.string "title"
t.integer "duration"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "email"
t.string "twitter"
t.text "description"
t.boolean "approved", :default => false
end

create_table "users", :force => true do |t|
Expand Down
1 change: 1 addition & 0 deletions spec/factories.rb
Expand Up @@ -10,5 +10,6 @@
duration 30
email "mike@atlrug.com"
twitter "@skalnik"
approved false
end
end

0 comments on commit f2bdb21

Please sign in to comment.