23 lines
443 B
Ruby
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
|