aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20150124004310_create_notes.rb
diff options
context:
space:
mode:
authorTeddy Wing2015-01-23 20:54:48 -0500
committerTeddy Wing2015-01-23 20:54:48 -0500
commit4432d0b7d1d2ee43258c6147f0881af923d07312 (patch)
tree2776273da20b726e008556816c40a00f1d1e28c8 /db/migrate/20150124004310_create_notes.rb
parentd7d88ccd11cda59619fea44e14997ed21b5f9a4e (diff)
parent3ea39ca725e28f83fbea4a6ebaa037697cb8dde9 (diff)
downloadNotes-angular-demo-4432d0b7d1d2ee43258c6147f0881af923d07312.tar.bz2
Merge branch 'create-api-endpoints'
Diffstat (limited to 'db/migrate/20150124004310_create_notes.rb')
-rw-r--r--db/migrate/20150124004310_create_notes.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20150124004310_create_notes.rb b/db/migrate/20150124004310_create_notes.rb
new file mode 100644
index 0000000..41fe6cb
--- /dev/null
+++ b/db/migrate/20150124004310_create_notes.rb
@@ -0,0 +1,10 @@
+class CreateNotes < ActiveRecord::Migration
+ def change
+ create_table :notes do |t|
+ t.string :title
+ t.text :body
+
+ t.timestamps null: false
+ end
+ end
+end