Browse files

update document model

  • Loading branch information...
1 parent 649228e commit 0826a1a4a05d85cd48e91bb95773e8dc504e554e @jackdempsey committed Aug 5, 2012
View
3 ...6_create_documents_documents.documents.rb → ...7_create_documents_documents.documents.rb
@@ -2,7 +2,8 @@
class CreateDocumentsDocuments < ActiveRecord::Migration
def change
create_table :documents_documents do |t|
- t.string :file
+ t.string :file, :title
+ t.text :description
t.references :owner, polymorphic: true
t.timestamps
View
8 spec/dummy/db/schema.rb
@@ -11,14 +11,16 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120805175936) do
+ActiveRecord::Schema.define(:version => 20120805195557) do
create_table "documents_documents", :force => true do |t|
t.string "file"
+ t.string "title"
+ t.text "description"
t.integer "owner_id"
t.string "owner_type"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
add_index "documents_documents", ["owner_id"], :name => "index_documents_documents_on_owner_id"

0 comments on commit 0826a1a

Please sign in to comment.