Skip to content

Instantly share code, notes, and snippets.

@darwinrc
Created March 8, 2015 00:29
Show Gist options
  • Save darwinrc/22fe79cad5091e74d250 to your computer and use it in GitHub Desktop.
Save darwinrc/22fe79cad5091e74d250 to your computer and use it in GitHub Desktop.
Migration Lotus and Sequel
class CreatePosts < Sequel::Migration
def up
create_table :posts do
primary_key :id
String :title
String :content
Integer :user_id
index :user_id
end
end
def down
drop_table :posts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment