beginning of osm on rails
This commit is contained in:
commit
06f3473d1c
28 changed files with 6015 additions and 0 deletions
11
db/migrate/001_create_users.rb
Normal file
11
db/migrate/001_create_users.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateUsers < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :users do |t|
|
||||
# t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :users
|
||||
end
|
||||
end
|
11
db/migrate/002_create_traces.rb
Normal file
11
db/migrate/002_create_traces.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateTraces < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :traces do |t|
|
||||
# t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :traces
|
||||
end
|
||||
end
|
11
db/migrate/003_create_trace_points.rb
Normal file
11
db/migrate/003_create_trace_points.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateTracePoints < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :trace_points do |t|
|
||||
# t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :trace_points
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue