Sha256: 40d3675a0018dc7cb300439376770c5dbdfdd52d64aa070458a789b2f799092c

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

ActiveRecord::Schema.define do
 
  create_table :test_myisam, :options=>'ENGINE=MyISAM', :force=>true do |t|
    t.column :my_name, :string, :null=>false
    t.column :description, :string
  end
  
  create_table :test_innodb, :options=>'ENGINE=InnoDb', :force=>true do |t|
    t.column :my_name, :string, :null=>false
    t.column :description, :string
  end

  create_table :test_memory, :options=>'ENGINE=Memory', :force=>true do |t|
    t.column :my_name, :string, :null=>false
    t.column :description, :string
  end
  
  create_table :books, :options=>'ENGINE=MyISAM', :force=>true do |t|
    t.column :title, :string, :null=>false
    t.column :publisher, :string, :null=>false
    t.column :author_name, :string, :null=>false
    t.column :created_at, :datetime
    t.column :topic_id, :integer
  end
  execute "ALTER TABLE books ADD FULLTEXT( `title`, `publisher`, `author_name` )"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar-extensions-0.6.0 db/migrate/mysql_schema.rb