Sha256: ec15d4eb748d2537d9ebf29d0c047fdc8546d8584870af09e26ca4e902226249

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

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, :default => 'Default Publisher'
    t.column :author_name, :string, :null=>false
    t.column :created_at, :datetime
    t.column :created_on, :datetime
    t.column :updated_at, :datetime
    t.column :updated_on, :datetime
    t.column :topic_id, :integer
    t.column :for_sale, :boolean, :default => true
  end
  execute "ALTER TABLE books ADD FULLTEXT( `title`, `publisher`, `author_name` )"

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jorahood-ar-extensions-0.9.2.3 db/migrate/mysql_schema.rb
ar-extensions-0.9.2 db/migrate/mysql_schema.rb
ar-extensions-0.9.0 db/migrate/mysql_schema.rb
ar-extensions-0.9.1 db/migrate/mysql_schema.rb