Sha256: 6cdb9c15b9d7edfd08a3c52dd690a727af9cdd272f6bbe1e234285a1438573ed

Contents?: true

Size: 294 Bytes

Versions: 12

Compression:

Stored size: 294 Bytes

Contents

class CreateSpaceShuttles < ActiveRecord::Migration
  def change
    create_table :space_shuttles do |t|
      t.references :space_ship
      t.integer :power

      t.timestamps
    end
    
    add_foreign_key(:space_shuttles, :space_ships)
    cti_create_view('SpaceShuttle')
    
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dbview_cti-0.2.2 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.2.1 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.2.0 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.5 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.4 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.3 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.2 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.1 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.1.0 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.0.3 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.0.2 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb
dbview_cti-0.0.1 spec/dummy-rails-3/db/migrate/20130817014120_create_space_shuttles.rb