Mercurial > zeropaste
comparison db/migrate/20120826180414_create_pastes.rb @ 463:4608d12ebe03
Sync database
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 10 Dec 2018 02:35:08 +0900 |
parents | 682abad78313 |
children | d2ef59c9a4b4 |
comparison
equal
deleted
inserted
replaced
462:e8d6c631a55b | 463:4608d12ebe03 |
---|---|
1 # Create basic table. | 1 # Create basic table. |
2 class CreatePastes < ActiveRecord::Migration | 2 class CreatePastes < ActiveRecord::Migration[4.2] |
3 def change | 3 def change |
4 create_table :pastes do |t| | 4 create_table :pastes do |t| |
5 t.string :ip, :null => false | 5 t.string :ip, :null => false |
6 t.text :paste, :null => false | 6 t.text :paste, :null => false |
7 t.string :hash, :null => false | 7 t.string :hash, :null => false |