Sha256: 06bc199e17c3fa2add5cdf957c766040978216664d6317fb2cce5b354a85cb9d

Contents?: true

Size: 629 Bytes

Versions: 8

Compression:

Stored size: 629 Bytes

Contents

ActiveRecord::Schema.define do

  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 :publish_date, :date
    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

8 entries across 8 versions & 2 rubygems

Version Path
activerecord-import-0.9.0 test/schema/mysql_schema.rb
activerecord-import-0.8.0 test/schema/mysql_schema.rb
activerecord-import-0.7.0 test/schema/mysql_schema.rb
activerecord-import-0.6.0 test/schema/mysql_schema.rb
activerecord-import-0.5.0 test/schema/mysql_schema.rb
activerecord-import-0.4.1 test/schema/mysql_schema.rb
activerecord-import-0.4.0 test/schema/mysql_schema.rb
activerecord-import-rails4-0.5.0 test/schema/mysql_schema.rb