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.11.3 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.11.2 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.11.1 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.11.0 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.10.4 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.10.2 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.10.1 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.10.0 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.9 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.8 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.7 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.6 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.5 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.4 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.2 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.1 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.9.0 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.8.11 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.8.10 test/dummy/db/migrate/20150310143940_create_departments.rb
clark_kent-0.8.9 test/dummy/db/migrate/20150310143940_create_departments.rb