Sha256: 8f9e534dcf14c04e7004f4ab7f6b3aa0a1df6d1fab284862adc64feceaa9511b

Contents?: true

Size: 187 Bytes

Versions: 59

Compression:

Stored size: 187 Bytes

Contents

class CreateDepartments < ActiveRecord::Migration
  def change
    create_table :departments do |t|
      t.string :name
    end
    add_column :users, :department_id, :integer
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
clark_kent-0.3.0 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.10 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.8 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.7 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.6 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.5 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.4 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.3 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.2 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.1 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.2.0 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.7 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.6 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.5 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.4 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.3 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.2 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.1 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.1.0 test/dummy/db/migrate/20150310143940_create_departments.rb