This repository has been archived by the owner. It is now read-only.

use table_exists? to detect if migration table should be created to avoid SQLite3 error #8

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

View
@@ -38,7 +38,7 @@ def migration(name, &block)
protected
def create_migrations_table
- database.create_table? :migrations do
+ unless database.table_exists? :migrations
primary_key :id
String :name, :null => false, :index => true
timestamp :ran_at