Skip to content

Commit

Permalink
Changed bool to boolean in migrations, for sqlite compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbbarth committed Jan 24, 2009
1 parent d8289a0 commit 0eb7683
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion db/migrate/013_add_auto_updates.rb
Expand Up @@ -9,7 +9,7 @@ class AddAutoUpdates < ActiveRecord::Migration
def self.up
create_table "updates" do |t|
t.column "last_checked_at", :datetime
t.column "update_available", :bool, :default => false
t.column "update_available", :boolean, :default => false
t.column "update_version", :string
end
execute "INSERT INTO updates (last_checked_at, update_version) VALUES ('1981-05-15 00:00:00', '1.2')"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/014_comments.rb
Expand Up @@ -19,7 +19,7 @@ def self.up
t.column "body_raw", :text
t.column "body_searchable", :text
t.column "ip", :string
t.column "is_approved", :bool, :default => false
t.column "is_approved", :boolean, :default => false
t.column "created_at", :datetime, :null => false
t.column "modified_at", :datetime, :null => false
end
Expand Down
24 changes: 20 additions & 4 deletions db/schema.rb
Expand Up @@ -26,8 +26,21 @@
t.datetime "created_at", :null => false
end

# Could not dump table "comments" because of following StandardError
# Unknown type 'bool' for column 'is_approved'
create_table "comments", :force => true do |t|
t.integer "post_id"
t.string "name"
t.string "email"
t.string "url"
t.string "subject"
t.string "synd_title"
t.text "body"
t.text "body_raw"
t.text "body_searchable"
t.string "ip"
t.boolean "is_approved", :default => false
t.datetime "created_at", :null => false
t.datetime "modified_at", :null => false
end

create_table "pages", :force => true do |t|
t.string "permalink", :limit => 128
Expand Down Expand Up @@ -86,7 +99,10 @@
t.string "name"
end

# Could not dump table "updates" because of following StandardError
# Unknown type 'bool' for column 'update_available'
create_table "updates", :force => true do |t|
t.datetime "last_checked_at"
t.boolean "update_available", :default => false
t.string "update_version"
end

end

0 comments on commit 0eb7683

Please sign in to comment.