aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20100606022209_create_agendas.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20100606022209_create_agendas.rb b/db/migrate/20100606022209_create_agendas.rb
new file mode 100644
index 0000000..14a878d
--- /dev/null
+++ b/db/migrate/20100606022209_create_agendas.rb
@@ -0,0 +1,18 @@
+class CreateAgendas < ActiveRecord::Migration
+ def self.up
+ create_table :agendas do |t|
+ t.string :name
+ t.text :description
+ t.datetime :start_at
+ t.datetime :end_at
+ t.datetime :created_at
+ t.datetime :updated_at
+ t.integer :owner_id
+ end
+ add_index :agendas, [:owner_id]
+ end
+
+ def self.down
+ drop_table :agendas
+ end
+end