Sha256: e2ebc611531edc74e4450fa91747ce1c43333e19cdeed09fb70707e1b0b9d871

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

class CreateMovies < ActiveRecord::Migration

  def self.up
    create_table :movies do |t|
      t.string :title
      t.integer :year
      t.text :search_text
      t.string :director
    end
  end

  def self.down
    drop_table :movies
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pollyanna-1.0.4 spec/app_root/db/migrate/001_create_movies.rb
pollyanna-1.0.3 spec/app_root/db/migrate/001_create_movies.rb
pollyanna-1.0.2 spec/app_root/db/migrate/001_create_movies.rb
pollyanna-1.0.1 spec/app_root/db/migrate/001_create_movies.rb
pollyanna-1.0.0 spec/app_root/db/migrate/001_create_movies.rb