Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing clipped_at from notes.

  • Loading branch information...
commit be4500b498226090e6b3f34cf25fc421d39cf182 1 parent bbb2128
@infovore authored
View
1  app/models/import.rb
@@ -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,
View
9 db/migrate/20111114134507_remove_clipped_at_from_notes.rb
@@ -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
3  db/schema.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.