From 026973f6a06f97b265eb61baa299d3a8f3f737f6 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Tue, 6 Nov 2007 18:26:54 +0000 Subject: Update Schema documentation to use updated sexy migration notation. Closes #10086 [sjgman9] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/schema.rb | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 9624ef38ad..32b767f0a1 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Update Schema documentation to use updated sexy migration notation. Closes #10086 [sjgman9] + * Make fixtures work with the new test subclasses. [tarmo, Koz] * Introduce finder :joins with associations. Same :include syntax but with inner rather than outer joins. #10012 [RubyRedRick] diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb index dc854463f6..9d50efb74f 100644 --- a/activerecord/lib/active_record/schema.rb +++ b/activerecord/lib/active_record/schema.rb @@ -8,16 +8,16 @@ module ActiveRecord # # ActiveRecord::Schema.define do # create_table :authors do |t| - # t.column :name, :string, :null => false + # t.string :name, :null => false # end # # add_index :authors, :name, :unique # # create_table :posts do |t| - # t.column :author_id, :integer, :null => false - # t.column :subject, :string - # t.column :body, :text - # t.column :private, :boolean, :default => false + # t.integer :author_id, :null => false + # t.string :subject + # t.text :body + # t.boolean :private, :default => false # end # # add_index :posts, :author_id -- cgit v1.2.3