Sha256: 7f447629e17c52c2cff437160f2989b7640ceb66b6024799c59def8798aca475

Contents?: true

Size: 273 Bytes

Versions: 30

Compression:

Stored size: 273 Bytes

Contents

class AddRedirectTable < ActiveRecord::Migration
  def self.up
    STDERR.puts "Adding Redirect Table"
    create_table :redirects do |t|
      t.column :from_path, :string
      t.column :to_path, :string
    end
  end

  def self.down
    drop_table :redirects
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
typo-5.5 db/migrate/026_add_redirect_table.rb
typo-5.4.4 db/migrate/026_add_redirect_table.rb
typo-5.4.3 db/migrate/026_add_redirect_table.rb
typo-5.4.2 db/migrate/026_add_redirect_table.rb
typo-5.4.1 db/migrate/026_add_redirect_table.rb
typo-5.4 db/migrate/026_add_redirect_table.rb
typo-3.99.0 db/migrate/026_add_redirect_table.rb
typo-3.99.2 db/migrate/026_add_redirect_table.rb
typo-3.99.3 db/migrate/026_add_redirect_table.rb
typo-3.99.1 db/migrate/026_add_redirect_table.rb
typo-4.0.0 db/migrate/026_add_redirect_table.rb
typo-4.0.2 db/migrate/026_add_redirect_table.rb
typo-4.0.1 db/migrate/026_add_redirect_table.rb
typo-3.99.4 db/migrate/026_add_redirect_table.rb
typo-4.1.1 db/migrate/026_add_redirect_table.rb
typo-4.0.3 db/migrate/026_add_redirect_table.rb
typo-5.0.1 db/migrate/026_add_redirect_table.rb
typo-5.0.2 db/migrate/026_add_redirect_table.rb
typo-4.1 db/migrate/026_add_redirect_table.rb
typo-5.0.3.98.1 db/migrate/026_add_redirect_table.rb