Sha256: 1fea00db15270188aaa4534e15d0f654125d22e5c3d4734f4da4fc299d940064

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

class CreateDivisionsMigration < ActiveRecord::Migration
  def self.up
    create_table :divisions do |t|
      t.timestamps
      t.integer :league_id
      t.string :name, limit: 50, null: false
    end
  end

  def self.down
    drop_table(:divisions)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.4 spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb
rails_admin-0.6.3 spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb
rails_admin-0.6.2 spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb
rails_admin-0.6.1 spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb