ual_app/db/migrate/20110427164514_create_map_contents.rb
2014-08-24 00:18:02 +02:00

23 lines
443 B
Ruby

# -*- encoding : utf-8 -*-
class CreateMapContents < ActiveRecord::Migration
def self.up
create_table :map_contents do |t|
t.string :address
t.string :name
t.integer :view
t.boolean :info_bule
t.integer :zoom
t.decimal :lat, :precision=>10, :scale=>6
t.decimal :lng, :precision=>10, :scale=>6
t.timestamps
end
end
def self.down
drop_table :map_contents
end
end