Skip to content

Instantly share code, notes, and snippets.

@darwinrc
Created March 8, 2015 00:29
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