aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/README.rdoc
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-11-07 11:56:50 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-11-07 11:56:50 +0900
commit55b203dac1eb4b3430b313112b8d5a53b1016b4e (patch)
tree83c7fe3db6766055d812c48ed325af959d97d4c7 /activerecord/README.rdoc
parent759906d51272534941843fc80ae9f579b28c336c (diff)
downloadrails-55b203dac1eb4b3430b313112b8d5a53b1016b4e.tar.gz
rails-55b203dac1eb4b3430b313112b8d5a53b1016b4e.tar.bz2
rails-55b203dac1eb4b3430b313112b8d5a53b1016b4e.zip
self.up, self.down => up, down
Diffstat (limited to 'activerecord/README.rdoc')
-rw-r--r--activerecord/README.rdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/README.rdoc b/activerecord/README.rdoc
index b5db57569c..70922ef864 100644
--- a/activerecord/README.rdoc
+++ b/activerecord/README.rdoc
@@ -150,7 +150,7 @@ A short rundown of some of the major features:
* Database agnostic schema management with Migrations.
class AddSystemSettings < ActiveRecord::Migration
- def self.up
+ def up
create_table :system_settings do |t|
t.string :name
t.string :label
@@ -162,7 +162,7 @@ A short rundown of some of the major features:
SystemSetting.create :name => "notice", :label => "Use notice?", :value => 1
end
- def self.down
+ def down
drop_table :system_settings
end
end