Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2015 02:24
Show Gist options
  • Save anonymous/6a2932396335212017a2 to your computer and use it in GitHub Desktop.
Save anonymous/6a2932396335212017a2 to your computer and use it in GitHub Desktop.
class CreateMovies < ActiveRecord::Migration
def up
create_table 'movies' do |t|
t.string 'title'
t.string 'rating'
t.text 'description'
t.datetime 'release_date'
# Add fields that let Rails automatically keep track
# of when movies are added or modified:
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment