20150809022253_create_movies.rb 334 B

12345678910111213
  1. class CreateMovies < ActiveRecord::Migration
  2. def change
  3. create_table :movies do |t|
  4. t.string :title
  5. t.string :rating
  6. t.text :description
  7. t.datetime :release_date
  8. # Add fields that let Rails automatically keep track
  9. # of when movies are added or modified:
  10. t.timestamps
  11. end
  12. end
  13. end