comparison db/migrate/20120826180414_create_pastes.rb @ 333:682abad78313

Documentation and line length.
author edogawaconan <me@myconan.net>
date Mon, 14 Apr 2014 17:32:12 +0900
parents 42de15334db1
children 4608d12ebe03
comparison
equal deleted inserted replaced
332:a999250e57c4 333:682abad78313
1 # Create basic table.
1 class CreatePastes < ActiveRecord::Migration 2 class CreatePastes < ActiveRecord::Migration
2 def change 3 def change
3 create_table :pastes do |t| 4 create_table :pastes do |t|
4 t.string :ip, :null => false 5 t.string :ip, :null => false
5 t.text :paste, :null => false 6 t.text :paste, :null => false