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

View File

@@ -0,0 +1,11 @@
class CreateMeetingtyps < ActiveRecord::Migration
def change
create_table :meetingtyps do |t|
t.string :name
t.text :desc
t.boolean :agendaintern, :default=>false
t.boolean :protocolintern, :default=>true
t.timestamps
end
end
end

View File

@@ -0,0 +1,15 @@
class CreateMeetings < ActiveRecord::Migration
def change
create_table :meetings do |t|
t.string :name
t.text :desc
t.boolean :intern, :default=>true
t.references :parent, :polymorphic=>{:default=>'Thema'}
t.references :meetingtyp
t.timestamps
end
add_index :meetings, :parent_id
add_index :meetings, :parent_type
add_index :meetings, :meetingtyp_id
end
end