Skip to content

Instantly share code, notes, and snippets.

@sabman
Created February 19, 2010 10:12
Show Gist options
  • Save sabman/308601 to your computer and use it in GitHub Desktop.
Save sabman/308601 to your computer and use it in GitHub Desktop.
class AddTiles < ActiveRecord::Migration
def self.up
Tile.create(:file => '1.jpg', :lon => 134, :lat => -26, :zoom => 1)
Tile.create(:file => '2.jpg', :lon => 122, :lat => -26, :zoom => 2)
Tile.create(:file => '3.jpg', :lon => 145, :lat => -26, :zoom => 2)
end
def self.down
Tile.delete_all
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment