Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class CreateMovies < ActiveRecord::Migration
  2. def up
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement