diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20150124004310_create_notes.rb | 10 | 
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 | 
