Sha256: efa2bca7eacec6edef82763dd3e7f8b508fa92cc2da4540834d82470825e75de

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

class OrganismMigration < ActiveRecord::Migration
  def self.up
    create_table :organisms do |t|
      t.string :name
      t.integer :number_of_legs
      t.datetime :birth_date

      t.timestamps null: true
    end
  end

  def self.down
    drop_table :organisms
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
replication-0.4.1 test/rails_app/db/migrate/830335961_organism_migration.rb
replication-0.4.0 test/rails_app/db/migrate/830335961_organism_migration.rb