Sha256: 4011430e36715d09333481ab450417d884abab79d719634f99e0b51db9d81719

Contents?: true

Size: 319 Bytes

Versions: 21

Compression:

Stored size: 319 Bytes

Contents

class CreateOrganizations < ActiveRecord::Migration
  def change
    create_table :organizations do |t|
      t.string :name
      t.string :slug
      t.timestamps
    end
    
    add_index :organizations, :slug
    add_column :projects, :organization_id, :integer
    add_index :projects, :organization_id
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
voluntary-0.7.1 db/migrate/20121028073712_create_organizations.rb
voluntary-0.7.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.6.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.5.2 db/migrate/20121028073712_create_organizations.rb
voluntary-0.5.1 db/migrate/20121028073712_create_organizations.rb
voluntary-0.5.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.4.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.3.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.2.4 db/migrate/20121028073712_create_organizations.rb
voluntary-0.2.3 db/migrate/20121028073712_create_organizations.rb
voluntary-0.2.2 db/migrate/20121028073712_create_organizations.rb
voluntary-0.2.1 db/migrate/20121028073712_create_organizations.rb
voluntary-0.2.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.1.0 db/migrate/20121028073712_create_organizations.rb
voluntary-0.1.0.rc4 db/migrate/20121028073712_create_organizations.rb
voluntary-0.1.0.rc3 db/migrate/20121028073712_create_organizations.rb
voluntary-0.1.0.rc2 db/migrate/20121028073712_create_organizations.rb
voluntary-0.1.0.rc1 db/migrate/20121028073712_create_organizations.rb
voluntary-0.0.3 db/migrate/20121028073712_create_organizations.rb
voluntary-0.0.2 db/migrate/20121028073712_create_organizations.rb