meetings added, documents added

This commit is contained in:
Andreas Stephanides
2014-11-26 20:36:04 +01:00
parent c2ea1782ff
commit 87dd70ea44
32 changed files with 304 additions and 21 deletions

View File

@@ -1,13 +1,15 @@
class CreateDocuments < ActiveRecord::Migration
def change
create_table :documents do |t|
t.integer :typ
t.integer :typ, :default=>0
t.string :name
t.text :text
t.string :etherpadkey
t.references{polymorphic} :parent
t.string :etherpadkey, :default=>""
t.references :parent,:polymorphic=>{:default=>'Thema'}
t.timestamps
end
add_index :documents, :parent_id
add_index :documents, :parent_type
end
end