Class: CreateCarrots
- Inherits:
-
Object
- Object
- CreateCarrots
- Defined in:
- lib/db/create_carrots.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/db/create_carrots.rb', line 2 def call return if Rubee::SequelObject::DB.tables.include?(:carrots) Rubee::SequelObject::DB.create_table(:carrots) do primary_key(:id) String(:color, null: false) # timestamps datetime(:created) datetime(:updated) end end |