Sha256: cf578ce72c56de2ec8efc9dfeff86414053355bfa8cc4b8bb79f269b4baf8053

Contents?: true

Size: 323 Bytes

Versions: 11

Compression:

Stored size: 323 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def self.up
    create_table :people do |t|
      t.string :first_name
      t.string :last_name
      t.integer :age
      t.date :date_of_birth
      t.string :gender
      t.boolean :alive

      t.timestamps
    end
  end

  def self.down
    drop_table :people
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
jtable-rails-0.2.5 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.2.4 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.2.3 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.2.2 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.2.1 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.2.0 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.1.4 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.1.3 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.1.2 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.1.1 spec/support/rails_app/db/migrate/20110207142623_create_people.rb
jtable-rails-0.1.0 spec/support/rails_app/db/migrate/20110207142623_create_people.rb