mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
16 lines
368 B
Ruby
16 lines
368 B
Ruby
class CreateNodes < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :nodes do |t|
|
|
t.string :color, :default => 'red'
|
|
t.string :author, :default => 'anonymous'
|
|
t.decimal :lat, :default => 0, :precision => 10
|
|
t.decimal :lon, :default => 0, :precision => 10
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :nodes
|
|
end
|
|
end
|