HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/Schema/cdesc-Schema.ri
U:RDoc::NormalClass[iI"Schema:ETI"ActiveRecord::Schema;TI"%ActiveRecord::Migration::Current;To:RDoc::Markup::Document:@parts[o;;[
S:RDoc::Markup::Heading:
leveli:	textI"Active Record \Schema;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph;[	I"JAllows programmers to programmatically define a schema in a portable ;TI"LDSL. This means you can define tables, indexes, etc. without using SQL ;TI"Edirectly, so your applications can more easily support multiple ;TI"databases.;T@o;
;[I"Usage:;T@o:RDoc::Markup::Verbatim;[I"$ActiveRecord::Schema.define do
;TI"$  create_table :authors do |t|
;TI"%    t.string :name, null: false
;TI"  end
;TI"
;TI"*  add_index :authors, :name, :unique
;TI"
;TI""  create_table :posts do |t|
;TI"+    t.integer :author_id, null: false
;TI"    t.string :subject
;TI"    t.text :body
;TI",    t.boolean :private, default: false
;TI"  end
;TI"
;TI"$  add_index :posts, :author_id
;TI"	end
;T:@format0o;
;[I"KActiveRecord::Schema is only supported by database adapters that also ;TI"=support migrations, the two features being very similar.;T:
@fileI" lib/active_record/schema.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I"
class;T[[:public[[I"define;TI" lib/active_record/schema.rb;T[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@0I"ActiveRecord;TcRDoc::NormalModule