mirror of
https://github.com/publiclab/mapknitter.git
synced 2026-01-06 15:35:25 +01:00
20 lines
429 B
Ruby
20 lines
429 B
Ruby
class CreateWarpables < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :warpables do |t|
|
|
t.column :parent_id, :integer
|
|
t.column :content_type, :string
|
|
t.column :filename, :string
|
|
t.column :thumbnail, :string
|
|
t.column :size, :integer
|
|
t.column :width, :integer
|
|
t.column :height, :integer
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :warpables
|
|
end
|
|
end
|