Sha256: 01e6d991c678de6f3136eff55b11e0f973f3189a046912ea989bbfd03730cca1

Contents?: true

Size: 334 Bytes

Versions: 51

Compression:

Stored size: 334 Bytes

Contents

class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books, :force => true do |t|
      t.column :category_id, :integer
      t.column :name, :string
      t.column :author, :string
      t.column :type, :string
      t.column :published_on, :date
    end
  end

  def self.down
    drop_table :books
  end
end

Version data entries

51 entries across 51 versions & 9 rubygems

Version Path
honkster-acts_as_solr-0.1.0 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.0 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.1 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.2 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.3 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.4 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.2.5 test/db/migrate/001_create_books.rb
honkster-acts_as_solr-0.3.4 test/db/migrate/001_create_books.rb
jbasdf-acts_as_solr-0.3.3 test/db/migrate/001_create_books.rb
jbasdf-jbasdf-acts_as_solr-0.4.0 test/db/migrate/001_create_books.rb
jbasdf-muck-solr-0.4.0 test/db/migrate/001_create_books.rb
jbasdf-muck-solr-0.4.1 test/db/migrate/001_create_books.rb
jbasdf-muck-solr-0.4.2 test/db/migrate/001_create_books.rb
onemorecloud-websolr-rails-1.1.1 test/db/migrate/001_create_books.rb
onemorecloud-websolr-rails-1.3.3 test/db/migrate/001_create_books.rb
onemorecloud-websolr-rails-1.4.0 test/db/migrate/001_create_books.rb
onemorecloud-websolr-rails-1.4.1 test/db/migrate/001_create_books.rb
acts_as_solr_reloaded-1.6.0 test/db/migrate/001_create_books.rb
muck-solr-3.0.1 test/db/migrate/001_create_books.rb
muck-solr-3.0.0 test/db/migrate/001_create_books.rb