# HG changeset patch # User edogawaconan # Date 1397464332 -32400 # Node ID 682abad78313423fbfd932cb90baa518c7242440 # Parent a999250e57c4f2acbe3e91dda2bbf24ebe693433 Documentation and line length. diff -r a999250e57c4 -r 682abad78313 db/migrate/20120826180414_create_pastes.rb --- a/db/migrate/20120826180414_create_pastes.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20120826180414_create_pastes.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Create basic table. class CreatePastes < ActiveRecord::Migration def change create_table :pastes do |t| diff -r a999250e57c4 -r 682abad78313 db/migrate/20120826182012_change_column_name_to_conform_ar.rb --- a/db/migrate/20120826182012_change_column_name_to_conform_ar.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20120826182012_change_column_name_to_conform_ar.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Hash shouldn't be used as column name. class ChangeColumnNameToConformAr < ActiveRecord::Migration def change rename_column :pastes, :hash, :paste_hash diff -r a999250e57c4 -r 682abad78313 db/migrate/20120905072325_set_limit_on_paste.rb --- a/db/migrate/20120905072325_set_limit_on_paste.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20120905072325_set_limit_on_paste.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Reduced size as needed. class SetLimitOnPaste < ActiveRecord::Migration def change change_table :pastes do |t| diff -r a999250e57c4 -r 682abad78313 db/migrate/20120905074204_return_not_null_to_paste.rb --- a/db/migrate/20120905074204_return_not_null_to_paste.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20120905074204_return_not_null_to_paste.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Add constraints. class ReturnNotNullToPaste < ActiveRecord::Migration def change change_table :pastes do |t| diff -r a999250e57c4 -r 682abad78313 db/migrate/20130201150322_add_key_to_paste.rb --- a/db/migrate/20130201150322_add_key_to_paste.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20130201150322_add_key_to_paste.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# For deletion. class AddKeyToPaste < ActiveRecord::Migration def change add_column :pastes, :key, :string diff -r a999250e57c4 -r 682abad78313 db/migrate/20130511133450_add_secret_to_pastes.rb --- a/db/migrate/20130511133450_add_secret_to_pastes.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20130511133450_add_secret_to_pastes.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Private paste column. class AddSecretToPastes < ActiveRecord::Migration def change add_column :pastes, :secret, :string diff -r a999250e57c4 -r 682abad78313 db/migrate/20130512032335_add_index_to_pastes_secret.rb --- a/db/migrate/20130512032335_add_index_to_pastes_secret.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/migrate/20130512032335_add_index_to_pastes_secret.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,3 +1,4 @@ +# Speed up lookup. class AddIndexToPastesSecret < ActiveRecord::Migration def change add_index :pastes, :secret diff -r a999250e57c4 -r 682abad78313 db/seeds.rb --- a/db/seeds.rb Mon Apr 14 17:28:31 2014 +0900 +++ b/db/seeds.rb Mon Apr 14 17:32:12 2014 +0900 @@ -1,5 +1,6 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). +# This file should contain all the record creation needed to seed the +# database with its default values. The data can then be loaded with the +# rake db:seed (or created alongside the db with db:setup). # # Examples: #