changeset 333:682abad78313

Documentation and line length.
author edogawaconan <me@myconan.net>
date Mon, 14 Apr 2014 17:32:12 +0900
parents a999250e57c4
children 41b0903c9b2b
files db/migrate/20120826180414_create_pastes.rb db/migrate/20120826182012_change_column_name_to_conform_ar.rb db/migrate/20120905072325_set_limit_on_paste.rb db/migrate/20120905074204_return_not_null_to_paste.rb db/migrate/20130201150322_add_key_to_paste.rb db/migrate/20130511133450_add_secret_to_pastes.rb db/migrate/20130512032335_add_index_to_pastes_secret.rb db/seeds.rb
diffstat 8 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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|
--- 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
--- 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|
--- 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|
--- 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
--- 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
--- 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
--- 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:
 #