Sha256: 57d97584e563dda54768a41723f9a4cd1ad4ff72e58d4035375554e1f13eb797

Contents?: true

Size: 448 Bytes

Versions: 16

Compression:

Stored size: 448 Bytes

Contents

class InitialTables < ActiveRecord::Migration
  def up
    create_table :projects, :force => true do |t|
      t.string :name
    end

    create_table :tasks, :force => true do |t|
      t.integer :project_id
      t.string :name
    end

    create_table :milestones, :force => true do |t|
      t.integer :task_id
      t.string :name
    end
  end

  def down
    drop_table :projects
    drop_table :tasks
    drop_table :milestones
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
bootstrap_forms-4.0.1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
nested_form_im-0.2.0.1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-4.0.0 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-3.0.1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-3.0.0 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-3.0.0.rc1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.1.1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.8 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.6 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.5 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.4 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.3 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.2 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.1 spec/dummy/db/migrate/20110710143903_initial_tables.rb
bootstrap_forms-2.0.0 spec/dummy/db/migrate/20110710143903_initial_tables.rb
nested_form-0.2.0 spec/dummy/db/migrate/20110710143903_initial_tables.rb