Permalink
Browse files

Removing clipped_at from notes.

  • Loading branch information...
infovore committed Nov 14, 2011
1 parent bbb2128 commit be4500b498226090e6b3f34cf25fc421d39cf182
Showing with 10 additions and 3 deletions.
  1. +0 −1 app/models/import.rb
  2. +9 −0 db/migrate/20111114134507_remove_clipped_at_from_notes.rb
  3. +1 −2 db/schema.rb
View
@@ -34,7 +34,6 @@ def self.create_new_items_for_import_from_processed_chunks(all_items, import)
if item[:is_note]
unless Note.first(:conditions => {:content => item[:content], :clipped_at => item[:clipped_at]})
note = Note.create(:content => item[:content],
- :clipped_at => item[:clipped_at],
:location => item[:location],
:author_id => author_obj.id,
:book => book_obj,
@@ -0,0 +1,9 @@
+class RemoveClippedAtFromNotes < ActiveRecord::Migration
+ def self.up
+ remove_column :notes, :clipped_at
+ end
+
+ def self.down
+ add_column :notes, :clipped_at, :datetime
+ end
+end
View
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20111016130826) do
+ActiveRecord::Schema.define(:version => 20111114134507) do
create_table "authors", :force => true do |t|
t.string "name"
@@ -55,7 +55,6 @@
create_table "notes", :force => true do |t|
t.text "content"
- t.datetime "clipped_at"
t.integer "location", :limit => 255
t.integer "book_id"
t.integer "author_id"

0 comments on commit be4500b

Please sign in to comment.